Template:Percentage: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Frietjes per talk page, fix error with small numbers |
meta>Frietjes No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ntsh|{{safesubst:#expr:100*{{safesubst:formatnum:{{{1|0}}}|R}}/{{safesubst:formatnum:{{{2|100}}}|R}}}}}}{{safesubst:#if:{{{sigfig|}}} | <includeonly>{{ntsh|{{safesubst:#expr:100*({{safesubst:formatnum:{{{1|0}}}|R}})/({{safesubst:formatnum:{{{2|100}}}|R}})}}}}{{safesubst:#if:{{{sigfig|}}} | ||
|{{safesubst:significant figures|100*{{safesubst:formatnum:{{{1|0}}}|R}}/{{safesubst:formatnum:{{{2|100}}}|R}} | {{{sigfig|}}} }} | |{{safesubst:significant figures|100*({{safesubst:formatnum:{{{1|0}}}|R}})/({{safesubst:formatnum:{{{2|100}}}|R}}) | {{{sigfig|}}} }} | ||
|{{safesubst:#if:{{{pad|}}} | |{{safesubst:#if:{{{pad|}}} | ||
|{{safesubst:round|100*{{safesubst:formatnum:{{{1|0}}}|R}}/{{safesubst:formatnum:{{{2|100}}}|R}} | {{{3|{{{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}}}}}}} | |{{safesubst:#expr:100*({{safesubst:formatnum:{{{1|0}}}|R}})/({{safesubst:formatnum:{{{2|100}}}|R}}) round ({{{3|0}}}>=0)*{{{3|0}}}}}}} | ||
}}{{{%|%}}}</includeonly><noinclude> | }}{{{%|%}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |