Template:Hex2dec: Difference between revisions
Appearance
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: | ||
{{#invoke: BaseConvert | convert | |||
| n={{{1}}} | |||
| base=10 | |||
| from=16 | |||
| default={{{default|0}}} | |||
}}<noinclude>{{documentation}}</noinclude> | |||
}} | |||
{{documentation}} | |||
</noinclude> |
Latest revision as of 19:32, 27 March 2016
Script error: No such module "BaseConvert".
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
|