Template:Decimal to hexadecimal converter: Difference between revisions
(Created page with "<includeonly>{{#ifexpr: {{#len: {{{1|}}} }} < 9 | {{#ifexpr: {{#len: {{{1|}}} }} > 0 | {{ #ifexpr: {{#len: {{{1}}} }} > 0 | {{#vardefine:char1|{{#expr: {{{1}}} mod...") |
m (1 revision) |
(No difference)
|
Revision as of 19:17, 4 January 2014
- Shortcut
- dec-hex
This template uses Module:Convert base, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua. |
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
The above documentation is transcluded from Template:Decimal to hexadecimal converter/doc. (edit | history)