Template:Percentage: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Hydrox
add support for zero-padding the figure
Ookami (talk | contribs)
m 31 revisions imported
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{pad|}}} | {{decimals | {{#expr:100*{{{1|0}}}/{{{2|100}}}}} | {{#expr: {{{3|{{{pad}}}}}} }} }} | {{#expr:100*{{{1|0}}}/{{{2|100}}} round ({{{3|0}}}>=0)*{{{3|0}}}}}}}{{{%|%}}}</includeonly><noinclude>
<includeonly>{{#invoke:Percentage|main|{{#expr:{{formatnum:{{{1|0}}}|R}}}}|{{#expr:{{formatnum:{{{2|100}}}|R}}}}|{{{3|}}}|pad={{{pad|}}}|sigfig={{{sigfig|}}}|%={{{%|%}}}|nonscinote={{{nonscinote|}}}
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 00:52, 3 September 2020