साँचा:Format price/doc
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
This template displays 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
साँचा:tlx
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 साँचा:tl for that separate feature.
Examples
- साँचा:aye साँचा:tlx = १.२0
- साँचा:aye साँचा:tlx = ४५६.७९
- साँचा:aye साँचा:tlx = ४५६.८0
- साँचा:aye साँचा:tlx = ४५७
- साँचा:aye साँचा:tlx = ५००
- साँचा:aye $साँचा:tlx = $1.23 thousand
- साँचा:aye $साँचा:tlx = $12.3 thousand
- साँचा:aye $साँचा:tlx = $123 thousand
- साँचा:aye $साँचा:tlx = $1 million
- साँचा:aye ¥साँचा:tlx = ¥98.8 trillion
- साँचा:aye साँचा:tlx atoms = 78.6 septillion atoms
- साँचा:nay साँचा:tlx = NaN
- साँचा:nay साँचा:tlx = NaN
- साँचा:nay साँचा:tlx = NaN
- साँचा:nay साँचा:tlx = NaN
See also