Difference between revisions of "Template:Decimal2Base/doc"
Jump to navigation
Jump to search
imported>Mr. Stradivarius (add {{lua}} template and remove Category:Lua-based templates, as it is added by the template as well - see Wikipedia talk:Lua#Lua talk template) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 20: | Line 20: | ||
=== See also === | === See also === | ||
| − | + | {{Math templates|numeral systems}}<includeonly>{{Sandbox other|| | |
| − | |||
| − | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Numerical conversion templates|{{PAGENAME}}]] | [[Category:Numerical conversion templates|{{PAGENAME}}]] | ||
[[Category:Lua-based templates|{{PAGENAME}}]] | [[Category:Lua-based templates|{{PAGENAME}}]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 23:09, 24 April 2020
| This is a documentation subpage for Template:Decimal2Base. It contains 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
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.