Jump to content

Template:Hex2dec: Difference between revisions

From SeptemWiki
Created page with "<includeonly>{{#ifeq:{{padleft:|2|{{{1|0}}}}}|0x | {{Hex2dec/main | {{lc:{{{1|0}}}}} | {{Hex2dec/1 | {{{1|0}}} }} }} | {{Hex2dec/main | 0x{{lc:{{{1|0}}..."
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#ifeq:{{padleft:|2|{{{1|0}}}}}|0x
{{#invoke: BaseConvert | convert
  | {{Hex2dec/main
  | n={{{1}}}  
    | {{lc:{{{1|0}}}}}  
  | base=10
    | {{Hex2dec/1 | {{{1|0}}} }}
  | from=16
    }}
  | default={{{default|0}}}
  | {{Hex2dec/main
}}<noinclude>{{documentation}}</noinclude>
    | 0x{{lc:{{{1|0}}}}}
    | {{Hex2dec/1 | 0x{{{1|0}}} }}
    }}
}}</includeonly><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 19:32, 27 March 2016

Script error: No such module "BaseConvert".

Documentation for Template:Hex2dec[view] [edit] [history]

This template provides a simple hex to decimal conversion.

Usage

  • {{hex2dec|0x0000}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0xA0}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0x7C0}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0xFFFF}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0x845FED}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0x75BCD15}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0xDEADBEEF}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0xFFFFFFFF}} → Script error: No such module "BaseConvert".
Input formats

Input with or without 0x prefix:

  • {{hex2dec|0xa0}} → Script error: No such module "BaseConvert".
  • {{hex2dec|a0}} → Script error: No such module "BaseConvert".

Uppercase and lowercase accepted:

  • {{hex2dec|A0}} → Script error: No such module "BaseConvert".
  • {{hex2dec|a0}} → Script error: No such module "BaseConvert".
Not a number input
  • {{hex2dec|}} → Script error: No such module "BaseConvert".
  • {{hex2dec}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0xAXYZ}} → Script error: No such module "BaseConvert".
  • {{hex2dec|XYZ}} → Script error: No such module "BaseConvert".
  • {{hex2dec|0xA B}} → Script error: No such module "BaseConvert".
  • {{hex2dec|A B}} → Script error: No such module "BaseConvert".


Pages that use this Template
Templates that use this Template