Usage सम्पादन गर्नुहोस्

{{percentage | numerator | denominator | decimals to round to (zero or greater) }}

Examples सम्पादन गर्नुहोस्

  • {{Percentage | 1 | 3 | 0 }} yields ३३‏%
  • {{Percentage | 1 | 3 | 2 }} yields ३३.३३‏%

Negative values can be used:

  • {{Percentage | -1 | 3 }} yields −३३‏%

Nornal operation is to cut off all decimal zeroes from right in rounding:

  • {{Percentage | 1 | 5 | 2 }} yields २०‏%
  • {{Percentage | 1111 | 10000 | 4 }} yields ११.११‏%

Add |pad=yes to always get as many decimals as specified, padding with zeroes where needed:

  • {{Percentage | 1 | 5 | 2 | pad=yes }} yields २०�00‏%
  • {{Percentage | 1111 | 10000 | 4 | pad=yes }} yields ११.११00‏%

Third parameter can also be given through |pad=N:

  • {{Percentage | 111 | 1000 | pad=4 }} is same as {{Percentage | 111 | 1000 | 4 | pad=yes }} and yields ११.१000‏%

Default denominator is 100:

  • {{Percentage | 20 }} yields २०‏%

Default precision is zero:

  • {{Percentage | 1 | 3 }} yields ३३‏%

Override the percent symbol

  • {{Percentage | 1 | 3 | % =  percent}} yields ३३‏ percent

Aliases सम्पादन गर्नुहोस्

  • {{pct}}
  • {{percent}}

See also सम्पादन गर्नुहोस्