Template:Dec2hex/doc: Difference between revisions
Appearance
Line 2: | Line 2: | ||
=== Usage === | === Usage === | ||
* <tt><nowiki>{{dec2hex|0}}</nowiki> → {{dec2hex|0}}</tt> | * <tt><nowiki>{{dec2hex|0}}</nowiki> → {{dec2hex|0}}</tt> |
Revision as of 19:34, 27 March 2016
This template provides easy conversion of a decimal number to a hexadecimal number.
Usage
- {{dec2hex|0}} → Script error: No such module "BaseConvert".
- {{dec2hex|160}} → Script error: No such module "BaseConvert".
- {{dec2hex|1984}} → Script error: No such module "BaseConvert".
- {{dec2hex|65535}} → Script error: No such module "BaseConvert".
- {{dec2hex|8675309}} → Script error: No such module "BaseConvert".
- {{dec2hex|123456789}} → Script error: No such module "BaseConvert".
- {{dec2hex|3735928559}} → Script error: No such module "BaseConvert".
- {{dec2hex|4294967295}} → Script error: No such module "BaseConvert".
- {{dec2hex|429496729595}} → Script error: No such module "BaseConvert".
- digits
- Specify how many digits are shown [2,8]. Example: {{dec2hex|65535|digits=8}} → Script error: No such module "BaseConvert".
- x
- Include the option x to display the number with a 0x.
- {{dec2hex|160}} → Script error: No such module "BaseConvert".
- {{dec2hex|160|x}} → 0xScript error: No such module "BaseConvert".