Template:Percentage: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Frietjes
add optional sigfig per request on talk page
Ookami (talk | contribs)
m 31 revisions imported
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{number table sorting|{{safesubst:#if:{{{sigfig|}}}
<includeonly>{{#invoke:Percentage|main|{{#expr:{{formatnum:{{{1|0}}}|R}}}}|{{#expr:{{formatnum:{{{2|100}}}|R}}}}|{{{3|}}}|pad={{{pad|}}}|sigfig={{{sigfig|}}}|%={{{%|%}}}|nonscinote={{{nonscinote|}}}
|{{safesubst:significant figures|100*{{safesubst:formatnum:{{{1|0}}}|R}}/{{safesubst:formatnum:{{{2|100}}}|R}} | {{{sigfig|}}} }}
}}</includeonly><noinclude>
|{{safesubst:#if:{{{pad|}}}
  |{{safesubst:round|100*{{safesubst:formatnum:{{{1|0}}}|R}}/{{safesubst:formatnum:{{{2|100}}}|R}} | {{{3|{{{pad}}}}}} }}
  |{{safesubst:#expr:100*{{safesubst:formatnum:{{{1|0}}}|R}}/{{safesubst:formatnum:{{{2|100}}}|R}} round ({{{3|0}}}>=0)*{{{3|0}}}}}}}
  }}
}}{{{%|%}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 00:52, 3 September 2020