Template:Percentage: Difference between revisions
Appearance
per talk page, fix error with small numbers |
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> | ||
Revision as of 13:40, 20 October 2019
File:Test Template Info-Icon - Version (2).svg Template documentationcreatepurge