Template:Dec2hex

Jump to navigation Jump to search

0

Template documentation[view] [edit] [history] [purge]

Usage[edit source]

Works for all values in the range 0–4294967295.

  • {{dec2hex|0}} → 0
  • {{dec2hex|160}} → A0
  • {{dec2hex|1984}} → 7C0
  • {{dec2hex|65535}} → FFFF
  • {{dec2hex|8675309}} → 845FED
  • {{dec2hex|123456789}} → 75BCD15
  • {{dec2hex|3735928559}} → DEADBEEF
  • {{dec2hex|4294967295}} → FFFFFFFF
digits
Specify how many digits are show [2,8]. Example: {{dec2hex|65535|digits=8}} → FFFF

External links[edit source]