Difference between revisions of "Template:Hex2Dec"
Jump to navigation
Jump to search
Heinermann (talk | contribs) (Created page with "<includeonly>{{#ifexpr: {{#len: {{{1|}}} }} < 9 | {{#ifexpr: {{#len: {{{1|}}} }} > 0 | {{#expr: {{ #ifexpr: {{#len: {{{1}}} }} > 7 | {{decchr|{{#sub:{{{1}}}|-8|1}} }} * 268435...") |
Heinermann (talk | contribs) (desc) |
||
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. | |||
{| class="wikitable" | {| class="wikitable" |
Revision as of 07:12, 12 July 2025
Converts hexadecimal numbers to decimal.
Example syntax | Example output |
---|---|
{{Hex2Dec|F4240}} |
1000000 |