Units of Currency - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Units : Known Units : Units/currency

Units of Currency

Description

 • Currency is a non-SI base dimension. The unit of currency is the US dollar.
 • Maple knows the units of currency listed in the following table.

 Name Symbols Context Alternate Spellings Prefixes dollar USD @ US * dollars

 An asterisk ( * ) indicates the default context, an at sign (@) indicates an abbreviation, and under the prefixes column, SI indicates that the unit takes all SI prefixes, IEC indicates that the unit takes IEC prefixes, and SI+ and SI- indicate that the unit takes only positive and negative SI prefixes, respectively.  Refer to a unit in the Units package by indexing the name or symbol with the context, for example, dollar[US]; by using an abbreviation, for example, USD; or, if the context is indicated as the default, by using only the unit name or symbol, for example, dollar.
 If desired, add additional currencies using the AddUnit function. They are not present by default because the conversion rates change daily. In the following examples, exchange rates valid in January 2005 are used. They are provided for reference purposes only. For additional world currencies, see ISO Currency Codes.
 Ensure that the value of Digits is sufficiently large (at least three to six decimal digits) so as to allow correct conversions.

Examples

Add conversion rates from January 2005.

 > $\mathrm{with}\left(\mathrm{Units}\right):$
 > $\mathrm{AddUnit}\left('\mathrm{dollar}','\mathrm{context}'='\mathrm{CA}','\mathrm{abbreviations}'='\mathrm{CAD}','\mathrm{conversion}'=0.8203'\mathrm{USD}'\right)$
 > $\mathrm{convert}\left(52000.00,'\mathrm{units}','\mathrm{CAD}','\mathrm{USD}'\right)$
 ${42655.60000}$ (1)