Template:Hex2dec
- español
- 日本語
- français
- 中文
- русский
- italiano
- português
- Nederlands
- العربية
- аԥсшәа
- অসমীয়া
- azərbaycanca
- Basa Bali
- Bikol Central
- беларуская
- беларуская (тарашкевіца)
- भोजपुरी
- বাংলা
- bosanski
- català
- čeština
- чӑвашла
- Cymraeg
- dansk
- Esperanto
- فارسی
- føroyskt
- galego
- հայերեն
- Bahasa Indonesia
- Ilokano
- гӀалгӀай
- íslenska
- Jawa
- ქართული
- ಕನ್ನಡ
- 한국어
- kurdî
- Ladin
- lietuvių
- македонски
- മലയാളം
- ဘာသာမန်
- Bahasa Melayu
- မြန်မာဘာသာ
- ਪੰਜਾਬੀ
- română
- संस्कृतम्
- Scots
- တႆး
- Simple English
- slovenščina
- српски / srpski
- svenska
- தமிழ்
- ತುಳು
- ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
- తెలుగు
- тоҷикӣ
- Tagalog
- Türkçe
- татарча / tatarça
- українська
- اردو
- oʻzbekcha / ўзбекча
- Tiếng Việt
- Yorùbá
- 文言
- 閩南語 / Bân-lâm-gí
- 粵語
0
Category:Wikipedia semi-protected templates#Hex2dec![]() | 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
- {{h2d}} (redirect)
- {{hexadecimal}}
Math templates | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
The above documentation is transcluded from Template:Hex2dec/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.