From Wikipedia, the free encyclopedia
0
| This template uses
Lua:
|
Usage
{{hex2dec|0x0000}} → 0
{{hex2dec|0xA0}} → 160
{{hex2dec|0x7C0}} → 1984
{{hex2dec|0xFFFF}} → 65535
{{hex2dec|0x845FED}} → 8675309
{{hex2dec|0x75BCD15}} → 123456789
{{hex2dec|0xDEADBEEF}} → 3735928559
{{hex2dec|0xFFFFFFFF}} → 4294967295
- Input formats
Input with or without 0x prefix:
{{hex2dec|0xa0}} → 160
{{hex2dec|a0}} → 160
Uppercase and lowercase accepted:
{{hex2dec|A0}} → 160
{{hex2dec|a0}} → 160
- Not a number input
{{hex2dec|}} → 0
{{hex2dec}} → 0
{{hex2dec|0xAXYZ}} → 0
{{hex2dec|XYZ}} → 0
{{hex2dec|0xA B}} → 0
{{hex2dec|A B}} → 0
See also
Math templates |
---|
- Functions
- Numeral systems
|
---|
|
|
|
|
---|
|
mvar | individual italicized maths variables in normal text |
overline
underline | a line set above/below a sequence of characters |
overarc | an arc set above a sequence of characters |
overset
underset | arbitrary characters/diacritics set above/below one another |
pars | parentheses that can be resized (∑) |
sfrac | "standing" or upright fractions 3/5 (use in maths/science articles instead of{{
fraction}} ) |
sub
sup
su | subscripts and superscripts |
tmath | Wrap
TeX in <math> tags |
tombstone | symbol indicating the
end of a proof |
val | measurement values, uncertainties and units |
vec | various overarrows, underarrows, etc. |
|
|
|
|
|