ထႅမ်းပလဵတ်ႉ:To USD round
This template converts a value given in the national currency of a given country to a round US dollar figure. The intended use is for large round figures, when you don't want €3.2 million turning into US$3,784,640, you just want a round figure like US$3,600,000. It tries to mimic the same number of significant figures, as are present in the original amount. The template uses values published by the IMF.[1]
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{To USD round|AMOUNT|COUNTRY|YEAR|sf=SIGFIG}}
ပႃႇရႃႇမီႇတႃႇ
[မႄးထတ်းငဝ်ႈငႃႇ]There are three unnamed parameters, and one named parameter:
|1=
is the amount in local currency to be converted to US dollars. Required.|2=
is the name or 3-letter ISO code of the country whose currency is being converted. Required.|3=
is the year to use for the US dollar exchange rate against the currency of the other country. Possible values: see § Data subtemplates below. Optional; default =2019
.|sf=
is number of significant figures. The converted value is displayed to that precision. Optional; the default is the number of significant figures in the amount given in param 1.
တူဝ်ယၢင်ႇ
[မႄးထတ်းငဝ်ႈငႃႇ]{{To USD round|5200|Mexico}}
displays 270. That is, 5200 Mexican pesos would exchange to roughly 270 US dollars (to two significant digits) at the 2019 exchange rate.{{To USD round|5200|MEX}}
{{To USD round|1250|FRA}}
{{To USD round|5200|MEX}}
{{Formatnum:{{To USD round|185000|RUS}}}}
⟶ 28,600.{{To USD round|5200|MEX|year=1998}}
displays Undefined year "1998" since data for 1998 has not been defined. It will add the page to Category:Pages using an undefined year in ထႅမ်းပလဵတ်ႉ:To USD round{{To USD round|5200|MEX|year=2009}}
displays 380 since data for 2009 has not been entered for Mexico. It will add the page to Category:Pages using an undefined country code in ထႅမ်းပလဵတ်ႉ:To USD round
{{To USD round|586000|BRA|year=2011}}
{{To USD round|586000|BRA|year=2019}}
{{To USD round|586000|BRA|year=}}
{{To USD round|586000|BRA}}
{{To USD round|620000000|BRA|year=2015}}
{{To USD round|620000000|BRA|year=2015|sf=4}}
{{To USD round|640|MEX|sf=5}}
# Some combos make no sense; USD doesn't have tenths of a cent.
တူၺ်းပႃး
[မႄးထတ်းငဝ်ႈငႃႇ]- Template:US$
- Template:Inflation: Calculates a value in a given country in a given year based on an amount of currency in the same country in another year.
- Template:To USD
- Template:Round
- Template:significant figures
- Template:International dollars: Converts a value in a given country in a given year to international dollars.
- Template:Per capita
{{formatnum:}}
Data subtemplates
[မႄးထတ်းငဝ်ႈငႃႇ]ဢၢင်ႈဢိင်ႈ
[မႄးထတ်းငဝ်ႈငႃႇ]- ↑ Official exchange rate (LCU per US$, period average). Retrieved on 14 April 2013။
ၶေႃးမုၼ်းထႅမ်းပလဵတ်ႉ
[မႄးထတ်းငဝ်ႈငႃႇ]To USD round
Template to convert other currencies into United States dollars, by year, based on information from the International Monetary Fund, and with selected number of significant figures
Parameter | ၶေႃႈသပ်းလႅင်း | Type | Status | |
---|---|---|---|---|
amount | 1 | value in foreign currency to convert to USD
| Number | required |
country code | 2 country | ISO 3166-1 alpha-3 country code
| Line | required |
year | year | Year to convert currency. Values: 1960–2022.
| Number | optional |
significant figures | sf | If numeric, rounds to that many significant figures. If omitted, rounds to number of significant figures in 'amount'.
| Number | optional |
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ ထႅမ်းပလဵတ်ႉ:To USD round/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း ထႅမ်းပလဵတ်ႉဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ သႂ်ႇပိူင်ထၢၼ်ႈ ၵႃႈတီႈ ၼႃႈလိၵ်ႈၽႄ /doc လႄႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ။. |