Template:Dec2hex: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Toomai moved page User:Toomai/Garage/dec2hex to Dec2hex without leaving a redirect: testing doesn't work in userpsace) |
(not sure why this never seemed to fail in Wikipedialand) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{digits|{{#expr:ceil(ln {{{1|0}}}/ln 16)}}}}} | {{#switch:{{{digits|{{#expr:ceil((ln {{{1|0}}}/ln 16)+0.001)}}}}} | ||
|1 | |1={{dec2hex/sub|{{{1}}}}} | ||
|2={{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | |2={{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|3={{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | |3={{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
Line 8: | Line 8: | ||
|7={{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | |7={{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|8={{dec2hex/sub|{{{1}}}|268435456}}{{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | |8={{dec2hex/sub|{{{1}}}|268435456}}{{dec2hex/sub|{{{1}}}|16777216}}{{dec2hex/sub|{{{1}}}|1048576}}{{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|{{#ifeq:{{{1|0}}}|0| | |{{#ifeq:{{{1|0}}}|0|0|<span class="error">Out of range</span>}} | ||
}} | }} |
Latest revision as of 15:36, August 11, 2012
0