Template:Cents/doc
Jump to navigation
Jump to search
Usage
Use this template like this
{{cents|ratio|precision}}
Example
This input in the wiki source
{{cents|3|5}}
produces the following output
- {{subst:#number_format: {{subst:#expr: 1200 * ln({{subst:#rmatch: 3|^(.*?)[Cc]?$|\1}}) / ln(2)}}|5|.|}}{{subst:#switch: {{subst:#rmatch: 3|^.*?([Cc]?)$|\1}}|c= ¢|C= ¢|#default=}}
See also
- Template:Cent – A template to insert the cent symbol