ढाँचा:Format price
ढाँचा कागजात[हेर्नुहोस्] [सम्पादन गर्नुहोस्] [इतिहास] [ताजा गर्नुहोस्]
This template display numbers typically representing prices in a pleasant way, ideally suited for articles. Numbers one thousand or greater are reduced down and rounded to a total of three digits followed by a multiplier text, and smaller numbers received separators and exactly two digits to represent cents, what doesn't always happen with the {{formatnum:}} magic word.
Usage
सम्पादन गर्नुहोस्{{Format price|value|digits}}
Where:
- value – the value that will be formatted and displayed (required).
- digits – sets the digit in which a value lower than one thousand must be rounded, defaulting to "2" (cents) if unspecified.
Providing non-numeric parameters, failing to provide any parameter, or providing a negative value parameter, result all in a link to the NaN article. Despite its name, this template only handles the number-formatting, not any unit symbols--consider {{currency}} for that separate feature.
Examples
सम्पादन गर्नुहोस्-
{{Format price|1.2}}
= १.२0 -
{{Format price|456.789}}
= ४५६.७९ -
{{Format price|456.789|1}}
= ४५६.८0 -
{{Format price|456.789|0}}
= ४५७ -
{{Format price|456.789|-2}}
= ५०० - $
{{Format price|1234}}
= $1.23 हजार - $
{{Format price|12345}}
= $12.3 हजार - $
{{Format price|123456}}
= $123 हजार - $
{{Format price|1000000}}
= $1 मिलियन - ¥
{{Format price|98765432109876}}
= ¥98.8 ट्रिलियन -
{{Format price|7.86178E+25}}
atoms = 78.6 septillion atoms -
{{Format price}}
= NaN -
{{Format price||0}}
= NaN -
{{Format price|-100}}
= NaN -
{{Format price|xyz|A}}
= NaN
See also
सम्पादन गर्नुहोस्- {{Inflation}}
- {{Inflation-fn}}