Difference between revisions of "Template:Decimal2Base/doc"

From blackwiki
Jump to navigation Jump to search
Line 20: Line 20:
 
=== See also ===
 
=== See also ===
 
* {{tl|Roman}}
 
* {{tl|Roman}}
 +
* {{tl|Hex2dec}}
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Numerical conversion templates]]
 
[[Category:Numerical conversion templates]]
 
</includeonly>
 
</includeonly>

Revision as of 15:41, 24 July 2011

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