Template:Decimal2Base

From blackwiki
Revision as of 05:41, 24 February 2013 by imported>Toohool (switch to Lua implementation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}

Template documentation[view] [edit] [history] [purge]

This template converts numbers from decimal to a given base.

Usage

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.


See also