The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Template:Decimal to hexadecimal converter

From Minecraft Wiki
Jump to: navigation, search
[view | edit | history | purge]Documentation
Shortcut
dec-hex
Lua logo.svg
This template uses Module:Convert base, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

This is a simple to use tool for dynamically converting decimal values to hexadecimal values. It outputs in a 6 character hex format and so can take decimal numbers up to 9999999999999999999.

Code

In full the template code is as follows:

{{Decimal to hexadecimal converter|1234}}

But it is much easier to use it through the redirect dec-hex which allows it to be written out as:

{{Dec-hex|1234}}

Both of which will output 4D2.

See also

[view | edit | history | purge]The above documentation is transcluded from Template:Decimal to hexadecimal converter/doc.