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
|
|---|
|
|
|
|
|---|
| bigmath | bigger font to match TeX \displaystyle (standalone formulas only) | math | short text-based formulas | | mathcal | [mathematical] calligraphic font; alternative to LaTeX \mathcal{...} | tombstone | symbol indicating the end of a proof | | mvar | individual italicized maths variables in normal text | val | measurement values, uncertainties and units | |
| a line set above/below a sequence of characters | vec | various overarrows, underarrows, etc. | | abs | absolute values (paired vertical lines) |
| angular brackets | |
| bra–ket notation |
| multiline delimiters (2–5 lines inclusive) | | ceil, floor | calculations :mw:Help:#expr; formatting indicators ⌈3.14⌉, ⌊3.14⌋ (no calculation performed) | pars | parentheses that can be resized (∑) | | fraction | slant fractions 3⁄5 (not for maths/science articles; use standing or upright fractions {{sfrac}} instead) | sfrac | "standing" or upright fractions 3/5 (use in maths/science articles instead of{{fraction}}) | | intmath | integral symbols | sum-int | an integral superimposed over a capital sigma | |
| subscripts and superscripts |
| arbitrary characters/diacritics set above/below one another | | | | tmath | Wrap TeX in <math> tags |
|
|
|
|