الگو: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 euros turning into $خطای قالب‌بندی: Not a number: الگو:به یورو/داده/۲۰۲۱ dollars, you just want a round figure like $۳۷۰۰۰۰۰. 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.[۱]

قواعد[ویرایش]

{{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.

مثال‌ها[ویرایش]

  • {{To USD round|5200|Mexico}} displays ۲۷۰. That is, 5200 Mexican pesos would exchange to roughly ۲۷۰ US dollars (to two signficant digits) at the 2019 exchange rate.
  • {{To USD round|5200|MEX}} also displays ۲۷۰.
  • {{To USD round|1250|FRA}} displays ۱۴۵۰.
  • {{To USD round|5200|MEX|sf=3}} displays ۲۷۵.
  • {{Formatnum:{{To USD round|18000|RUS}}}} displays ۳۱۰۰.
  • {{To USD round|5200|MEX|year=2009}} displays Undefined year "2009" since data for 2009 has not been defined. It will add the page to Category:Pages using an undefined year in الگو:To USD round

  • {{To USD round|586000|BRA|year=2011}} = ۳۵۱۰۰۰
  • {{To USD round|586000|BRA|year=2017}} = ۱۸۴۰۰۰
  • {{To USD round|620000000|BRA|year=2015}} = ۱۹۰۰۰۰۰۰۰
  • {{To USD round|620000000|BRA|year=2015|sf=4}} = ۱۸۶۳۰۰۰۰۰
  • {{To USD round|640|MEX|sf=5}} displays ۳۳٫۸۱۰. # Some combos make no sense; USD doesn't have tenths of a cent.

جستارهای وابسته[ویرایش]

زیرالگوها[ویرایش]

منابع[ویرایش]

  1. "Official exchange rate (LCU per US$, period average)". Retrieved 14 April 2013.