Difference between revisions of "Template:Decimal2Base"
Jump to navigation
Jump to search
imported>Jkasd (add doc) |
imported>Toohool (switch to Lua implementation) |
||
| Line 1: | Line 1: | ||
| − | + | {{#invoke: BaseConvert | convert | |
| − | + | | n={{{1}}} | |
| − | + | | base={{{2}}} | |
| − | + | }}<noinclude>{{documentation}}</noinclude> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 05:41, 24 February 2013
{{{1}}}
| This template uses Lua: |
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
| The above documentation is transcluded from Template:Decimal2Base/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |