ထႅမ်းပလဵတ်ႉ:Format price
Format price error: cannot parse value ""
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 receive separators and exactly two digits to represent cents, which does not always happen with the {{formatnum:}}
magic word.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{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.
တူဝ်ယၢင်ႇ
[မႄးထတ်းငဝ်ႈငႃႇ]-
{{Format price|1.2}}
= 1.20 -
{{Format price|456.789}}
= 456.79 -
{{Format price|456.789|1}}
= 456.80 -
{{Format price|456.789|0}}
= 457 -
{{Format price|456.789|-2}}
= 500 -
$
= $1,234{{Format price|1234}}
-
$
= $12,345{{Format price|12345}}
-
$
= $123,456{{Format price|123456}}
-
$
= $1 million{{Format price|1000000}}
-
¥
= ¥98.8 trillion{{Format price|98765432109876}}
-
= 78.6 septillion atoms{{Format price|7.86178E+25}}
atoms
ၽိတ်း
[မႄးထတ်းငဝ်ႈငႃႇ]-
{{Format price}}
= Format price error: cannot parse value "" (empty parameter) -
{{Format price||0}}
= Format price error: cannot parse value "" (empty first parameter) -
{{Format price|-100}}
= Format price error: cannot parse value "-100" (negative values are invalid) -
{{Format price|xyz|A}}
= Format price error: cannot parse value "xyz" (only numeric values are allowed) -
{{Format price|1E+309}}
= Format price error: cannot parse value "1E+309" (overflow)
တူၺ်းပႃး
[မႄးထတ်းငဝ်ႈငႃႇ]- {{Inflation}}
- {{Inflation/fn}}
- {{currency}}
No description.
Parameter | ၶေႃႈသပ်းလႅင်း | Type | Status | |
---|---|---|---|---|
value | 1 | the value that will be formatted and displayed
| Number | required |
digits | 2 | sets the digit in which a value lower than one thousand must be rounded, defaulting to "2" (cents) if unspecified | Number | suggested |
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ ထႅမ်းပလဵတ်ႉ:Format price/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း ထႅမ်းပလဵတ်ႉဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ သႂ်ႇပိူင်ထၢၼ်ႈ ၵႃႈတီႈ ၼႃႈလိၵ်ႈၽႄ /doc လႄႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ။. |