Difference between revisions of "Template:Hex2dec/doc"
Jump to navigation
Jump to search
imported>Hyacinth (→See also: {{Math templates|numeral systems}}) |
imported>DePiep |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 3: | Line 3: | ||
=== Usage === | === Usage === | ||
| − | *< | + | *<code><nowiki>{{hex2dec|0x0000}}</nowiki> → {{hex2dec|0x0000}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0xA0}}</nowiki> → {{hex2dec|0xA0}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0x7C0}}</nowiki> → {{hex2dec|0x7C0}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0xFFFF}}</nowiki> → {{hex2dec|0xFFFF}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0x845FED}}</nowiki> → {{hex2dec|0x845FED}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0x75BCD15}}</nowiki> → {{hex2dec|0x75BCD15}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0xDEADBEEF}}</nowiki> → {{hex2dec|0xDEADBEEF}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0xFFFFFFFF}}</nowiki> → {{hex2dec|0xFFFFFFFF}}</code> |
;Input formats | ;Input formats | ||
Input with or without '''0x''' prefix: | Input with or without '''0x''' prefix: | ||
| − | *< | + | *<code><nowiki>{{hex2dec|0xa0}}</nowiki> → {{hex2dec|0xa0}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|a0}}</nowiki> → {{hex2dec|a0}}</code> |
Uppercase and lowercase accepted: | Uppercase and lowercase accepted: | ||
| − | *< | + | *<code><nowiki>{{hex2dec|A0}}</nowiki> → {{hex2dec|0x00A0}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|a0}}</nowiki> → {{hex2dec|A0}}</code> |
;Not a number input | ;Not a number input | ||
| − | *< | + | *<code><nowiki>{{hex2dec|}}</nowiki> → {{hex2dec|}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec}}</nowiki> → {{hex2dec}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0xAXYZ}}</nowiki> → {{hex2dec|}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|XYZ}}</nowiki> → {{hex2dec|}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|0xA B}}</nowiki> → {{hex2dec|}}</code> |
| − | *< | + | *<code><nowiki>{{hex2dec|A B}}</nowiki> → {{hex2dec|}}</code> |
=== See also === | === See also === | ||
| − | {{Math templates|numeral systems}}<includeonly> | + | |
| + | * {{tl|dec2hex}} | ||
| + | {{Math templates|numeral systems}}<includeonly>{{Sandbox other|| | ||
[[Category:Numerical conversion templates|{{PAGENAME}}]] | [[Category:Numerical conversion templates|{{PAGENAME}}]] | ||
| − | + | }}</includeonly> | |
| − | </includeonly> | ||
Latest revision as of 05:50, 23 December 2020
| This is a documentation subpage for Template:Hex2dec. It contains usage information, categories and other content that is not part of the original template page. |
| 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
- {{dec2hex}}