টেমপ্লেট:Format price
(টেমপ্লেট:Formatprice থেকে পুনর্নির্দেশিত)
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.
ব্যবহার
সম্পাদনা{{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}}
= ১.২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
আরও দেখুন
সম্পাদনা- {{Inflation}}
- {{Inflation-fn}}
উপরোক্ত নথিটি টেমপ্লেট:Format price/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |