Template:Cents/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
do not overcomplicate |
||
| Line 3: | Line 3: | ||
Use this template like this | Use this template like this | ||
: <code>{{ | : <code><nowiki>{{cents|ratio|precision}}</nowiki></code> | ||
=== Example === | === Example === | ||
This input in the wiki source | This input in the wiki source | ||
: <code>{{ | : <code><nowiki>{{cents|3/2|5}}</nowiki></code> | ||
produces the following output | produces the following output | ||
| Line 13: | Line 13: | ||
Intervals can even be typed as evaluable mathematical expressions. For example: | Intervals can even be typed as evaluable mathematical expressions. For example: | ||
: <code>{{ | : <code><nowiki>{{cents|3^12/2^19|5}}</nowiki></code> | ||
gives: | gives: | ||
Revision as of 09:34, 28 September 2024
Usage
Use this template like this
{{cents|ratio|precision}}
Example
This input in the wiki source
{{cents|3/2|5}}
produces the following output
- This template must be substituted. Replace {{Cents ...}} with {{subst:Cents ...}}.
Intervals can even be typed as evaluable mathematical expressions. For example:
{{cents|3^12/2^19|5}}
gives:
- This template must be substituted. Replace {{Cents ...}} with {{subst:Cents ...}}.
See also
- Template:Cent – A template to insert the cent symbol