Template:Percent change: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#expr: ({{formatnum:{{{1}}}|R}}-{{formatnum:{{{2}}}|R}})/{{formatnum:{{{2}}}|R}}}}%</includeonly><noinclude> | <includeonly>{{#expr: (({{formatnum:{{{1}}}|R}}-{{formatnum:{{{2}}}|R}})/{{formatnum:{{{2}}}|R}})*100 round 2}}%</includeonly><noinclude> | ||
{{Notice|Caution|This template automatically calculates percentage changes between two data points, where the first point is the "newer" and the second is the "older." Thus, if calculating a change from 1900 to 1910, the 1910 data goes first.}} | {{Notice|Caution|This template automatically calculates percentage changes between two data points, where the first point is the "newer" and the second is the "older." Thus, if calculating a change from 1900 to 1910, the 1910 data goes first.}} | ||
[[Category:Calculation templates]] | [[Category:Calculation templates]] | ||
[[Category:Formatting and function templates]]</noinclude> | [[Category:Formatting and function templates]]</noinclude> |