Template:Cents/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 3: Line 3:
Use this template like this
Use this template like this


<pre>{cents|ratio|precision}}</pre>
<pre>{{cents|ratio|precision}}</pre>


=== Example ===
=== Example ===

Revision as of 02:51, 26 December 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