Template:Dec2hex: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{{digits|{{#expr:ceil(ln {{{1|0}}}/ln 16)}}}}} | {{#switch:{{{digits|{{#expr:ceil(ln {{{1|0}}}/ln 16)}}}}} | ||
|1 | |1 | ||
|2={{dec2hex/ | |2={{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|3={{dec2hex/ | |3={{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|4={{dec2hex/ | |4={{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|5={{dec2hex/ | |5={{dec2hex/sub|{{{1}}}|65536}}{{dec2hex/sub|{{{1}}}|4096}}{{dec2hex/sub|{{{1}}}|256}}{{dec2hex/sub|{{{1}}}|16}}{{dec2hex/sub|{{{1}}}}} | ||
|6={{dec2hex/ | |6={{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/ | |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/ | |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|00|<span class="error">Out of range</span>}} | |{{#ifeq:{{{1|0}}}|0|00|<span class="error">Out of range</span>}} | ||
}} | }} |
Revision as of 15:13, August 11, 2012
00