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 euros turning into $3,784,640 dollars, you just want a round figure like $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]

Syntax แก้

{{To USD round|AMOUNT|COUNTRY|YEAR|sf=SIGFIG}}

  • AMOUNT is the value in the local currency to be converted.
  • COUNTRY is the country name or 3-letter ISO code for the country whose currency is being converted.
  • YEAR (optional) is the year to use for the US dollar exchange rate value against the currency of the other country. The default is currently 2019. Possible values: 2002, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019.
  • SIGFIG (optional) is a numerical value. If present, the converted value is displayed to the that number of significant figures. The default is the number of significant figures in AMOUNT.

Examples แก้


  • {{To USD round|586000|BRA|year=2011}} = 350,000
  • {{To USD round|586000|BRA|year=2019}} = 149,000
  • {{To USD round|586000|BRA|year=}} = 149,000 (last year available)
  • {{To USD round|586000|BRA}} = 149,000 (last year available)
  • {{To USD round|620000000|BRA|year=2015}} = 190,000,000
  • {{To USD round|620000000|BRA|year=2015|sf=4}} = 186,400,000
  • {{To USD round|640|MEX|sf=5}} displays 33.220. # Some combos make no sense; USD doesn't have tenths of a cent.

See also แก้

Data subtemplates แก้

References แก้

  1. "Official exchange rate (LCU per US$, period average)". สืบค้นเมื่อ 14 April 2013.


TemplateData แก้

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ 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

พารามิเตอร์แม่แบบ

พารามิเตอร์คำอธิบายชนิดสถานะ
amount1

value in foreign currency to convert to USD

ตัวอย่าง
175000
จำนวนจำเป็น
country code2 country

ISO 3166-1 alpha-3 country code

ตัวอย่าง
MEX
บรรทัดจำเป็น
yearyear

Year to convert currency. Values: 2002, 2011–2019.

ตัวอย่าง
2002
จำนวนเลือกได้
significant figuressf

If numeric, rounds to that many significant figures. If omitted, rounds to number of significant figures in 'amount'.

ตัวอย่าง
3
จำนวนเลือกได้