Difference between revisions of "Template:Hex2Dec"

From Ōkami Speedrun Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ifexpr: {{#len: {{{1|}}} }} < 9 | {{#ifexpr: {{#len: {{{1|}}} }} > 0 | {{#expr: {{ #ifexpr: {{#len: {{{1}}} }} > 7 | {{decchr|{{#sub:{{{1}}}|-8|1}} }} * 268435...")
 
(see also)
 
(One intermediate revision by the same user not shown)
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. 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