Difference between revisions of "Template:Hex2Dec"

From Ōkami Speedrun Wiki
Jump to navigation Jump to search
(desc)
(see also)
 
Line 9: Line 9:
#ifexpr: {{#len: {{{1}}} }} > 1 | {{decchr|{{#sub:{{{1}}}|-2|1}} }} * 16 + }}{{
#ifexpr: {{#len: {{{1}}} }} > 1 | {{decchr|{{#sub:{{{1}}}|-2|1}} }} * 16 + }}{{
#ifexpr: {{#len: {{{1}}} }} > 0 | {{decchr|{{#sub:{{{1}}}|-1|1}} }} + }} 0}} }} | <strong class="error">String too long.</strong> }}</includeonly><noinclude>
#ifexpr: {{#len: {{{1}}} }} > 0 | {{decchr|{{#sub:{{{1}}}|-1|1}} }} + }} 0}} }} | <strong class="error">String too long.</strong> }}</includeonly><noinclude>
Converts hexadecimal numbers to decimal.
Converts hexadecimal numbers to decimal. See also [[:Template:Dec2Hex]].


{| class="wikitable"
{| class="wikitable"

Latest revision as of 07:14, 12 July 2025

Converts hexadecimal numbers to decimal. See also Template:Dec2Hex.

Example syntax Example output
{{Hex2Dec|F4240}}
1000000