Template:Hexadecimal

Documentation
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 16777215. There currently isn't a system implemented for truncating preceding 0's so all outputs are in 6 character hex format.

Code
In full the template code is as follows:

But it is much easier to use it through the redirect dec-hex which allows it to be written out as: Both of which will output 0004D2.