Template:To USD round/doc

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 $0 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.

Syntax

 * 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

 * displays . That is, 5200 Mexican pesos would exchange to roughly   US dollars (to two signficant digits) at the 2019 exchange rate.
 * also displays.
 * displays.
 * displays.
 * displays 0.
 * displays since data for 1998 has not been defined. It will add the page to Category:Pages using an undefined year in
 * displays since data for 2009 has not been entered for Mexico. It will add the page to Category:Pages using an undefined country code in


 * = (last year available)
 * = (last year available)
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * = (last year available)
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.
 * displays . # Some combos make no sense; USD doesn't have tenths of a cent.

Data subtemplates
2002 · 2011 · 2012 · 2013 · 2014 · 2015 · 2016 · 2017 · 2018 · 2019

TemplateData
{	"params": { "1": {			"label": "amount", "description": "value in foreign currency to convert to USD", "example": "175000", "type": "number", "required": true },		"2": {			"aliases": [ "country" ],			"label": "country code", "description": "ISO 3166-1 alpha-3 country code", "example": "MEX", "type": "line", "required": true },		"year": { "description": "Year to convert currency. Values: 2002, 2011–2019.", "example": "2002", "type": "number", "required": false },		"sf": { "label": "significant figures", "description": "If numeric, rounds to that many significant figures. If omitted, rounds to number of significant figures in 'amount'.", "example": "3", "type": "number" }	},	"description": "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" }