Template:Cents: Difference between revisions

Omg why did you make this a nonsubstituted template? The wiki is not a calculator!
Tag: Undo
Experiment with this version actually
Line 1: Line 1:
{{<includeonly>subst:</includeonly>#number_format:{{<includeonly>subst:</includeonly>#expr: 1200*ln({{{1|{{{ratio|1}}}}}})/ln(2)}}|{{{2|{{{precision|0}}}}}}|.|}}<noinclude>
{{#number_format: {{#expr: 1200 * ln({{{1|{{{ratio|1}}}}}}) / ln(2)}}|{{{2|{{{precision|0}}}}}}|.|}}<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.