You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Percentage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
== Syntax == | == Syntax == | ||
<pre>{{percentage|{{{1}}}|{{{2}}}|{3}}}}}</pre> | <pre>{{percentage|{{{1}}}|{{{2}}}|{{{3}}}}}</pre> | ||
== Parameters == | == Parameters == | ||
Line 12: | Line 12: | ||
:the denominator of the fraction; must not be zero | :the denominator of the fraction; must not be zero | ||
=== {{{3}}} === | === {{{3}}} === | ||
:the decimal number to be rounded to; defaults to 1 | :optional; the decimal number to be rounded to; defaults to 1 | ||
== Example == | == Example == |
Latest revision as of 17:52, 6 April 2012
Summary
This template generates fractions and their percentage, rounded.
Syntax
{{percentage|{{{1}}}|{{{2}}}|{{{3}}}}}
Parameters
{{{1}}}
- the numerator of the fraction
{{{2}}}
- the denominator of the fraction; must not be zero
{{{3}}}
- optional; the decimal number to be rounded to; defaults to 1
Example
2/3 (66.6667%)