Difference between revisions of "Template:Dec2hex/doc"
Jump to navigation
Jump to search
imported>Hyacinth (→See also: {{Math templates|numeral systems}}) |
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
||
| Line 5: | Line 5: | ||
Works for all values in the range 0–4294967295. | Works for all values in the range 0–4294967295. | ||
| − | * < | + | * <kbd><nowiki>{{dec2hex|0}}</nowiki> → {{dec2hex|0}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|160}}</nowiki> → {{dec2hex|160}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|1984}}</nowiki> → {{dec2hex|1984}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|65535}}</nowiki> → {{dec2hex|65535}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|8675309}}</nowiki> → {{dec2hex|8675309}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|123456789}}</nowiki> → {{dec2hex|123456789}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|3735928559}}</nowiki> → {{dec2hex|3735928559}}</kbd> |
| − | * < | + | * <kbd><nowiki>{{dec2hex|4294967295}}</nowiki> → {{dec2hex|4294967295}}</kbd> |
;digits | ;digits | ||
| − | : Specify how many digits are show [2,8]. Example: < | + | : Specify how many digits are show [2,8]. Example: <kbd><nowiki>{{dec2hex|65535|digits=8}}</nowiki> → {{dec2hex|65535|digits=8}}</kbd> |
=== See also === | === See also === | ||
Revision as of 07:01, 5 August 2018
| This is a documentation subpage for Template:Dec2hex. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Works for all values in the range 0–4294967295.
- {{dec2hex|0}} → 0x0
- {{dec2hex|160}} → 0xA0
- {{dec2hex|1984}} → 0x7C0
- {{dec2hex|65535}} → 0xFFFF
- {{dec2hex|8675309}} → 0x845FED
- {{dec2hex|123456789}} → 0x75BCD15
- {{dec2hex|3735928559}} → 0xDEADBEEF
- {{dec2hex|4294967295}} → 0xFFFFFFFF
- digits
- Specify how many digits are show [2,8]. Example: {{dec2hex|65535|digits=8}} → 0xFFFF