Template:Decimal2Base/doc
Appearance
![]() | This is a documentation subpage for Template:Decimal2Base. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
This template converts numbers from decimal to a given base.
Usage
[edit]Use:
{{Decimal2Base|n|radix}}
where n is the number in decimal and radix is the base you want to convert to.
Examples:
{{Decimal2Base|42|3}}
yields 1120.
{{Decimal2Base|{{#expr: 6 * 9}}|13}}
yields 42.
{{Decimal2Base|58|16}}
yields 3A.