Difference between revisions of "Template:Duodecimal"

From blackwiki
Jump to navigation Jump to search
imported>Toohool
(switch to Lua implementation)
imported>Toohool
(don't add base notation if the input was non-numeric)
Line 1: Line 1:
<includeonly>{{#invoke: BaseConvert | convert | n={{{1}}} | base=12 }}<sub>12</sub></includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly>{{#invoke: BaseConvert  
 +
  | convert  
 +
  | n={{{1}}}  
 +
  | base=12  
 +
  | suffix=<sub>12</sub>
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 21:14, 24 February 2013

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

This template makes it easy to convert decimal numbers into duodecimal.

Usage

Use: {{Duodecimal|x}} where x is the decimal number to be converted to duodecimal.

Example: {{Duodecimal|2356}} yields 144412.

See also