# ढाँचा:Percentage

Template documentation[view]  [history] [purge]

## 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 ११.११%

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

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 ११.१०००%

Default denominator is 100:

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

Default precision is zero:

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

Override the percent symbol

• {{Percentage | 1 | 3 | % = &nbsp;percent}} yields ३३ percent

## Aliases

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

```"https://ne.wikipedia.org/w/index.php?title=ढाँचा:Percentage&oldid=621401" बाट अनुप्रेषित