Template:Cents: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#number_format: {{#expr: 1200 * ln({{{1|{{{ratio | <includeonly>{{#ifexpr: {{{1|{{{ratio|}}}}}} >= 0|{{#number_format: {{#expr: 1200 * ln({{{1|{{{ratio}}}}}}) / ln(2)}}|{{{2|{{{precision|0}}}}}}|.|}}|}}</includeonly><noinclude> | ||
This template calculates the cent value of its first argument (defaults to 1). An optional second argument controls the precision, it defaults to 0 decimal places. | This template calculates the cent value of its first argument (defaults to 1). An optional second argument controls the precision, it defaults to 0 decimal places. | ||