currency - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Units of Currency

 

Description

Examples

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.

Argentina

AddUnit(peso, context=AR, abbreviations=ARS, conversion=0.3401*USD);

Australia

AddUnit(dollar, context=AU, abbreviations=AUD, conversion=0.7702*USD);

Bahamas

AddUnit(dollar, context=BS, abbreviations=BSD, conversion=1.0000*USD);

Brazil

AddUnit(real, context=BR, abbreviations=BRL, conversion=0.3719*USD);

Canada

AddUnit(dollar, context=CA, abbreviations=CAD, conversion=0.8203*USD);

Chile

AddUnit(peso, context=CL, abbreviations=CLP, conversion=0.001733*USD);

China

AddUnit(yuan_renminbi, context=CN, abbreviations=CNY, conversion=0.1208*USD);

Colombia

AddUnit(peso, context=CO, abbreviations=COP, conversion=0.0004215*USD);

Denmark

AddUnit(krone, context=DK, abbreviations=DKK, conversion=0.1752*USD);

European Union

AddUnit(euro, context=EU, abbreviations=EUR, conversion=1.3061*USD);

Fiji Islands

AddUnit(dollar, context=FJ, abbreviations=FJD, conversion=0.6011*USD);

Great Britain

AddUnit(pound, context=GB, abbreviations=GBP, conversion=1.8759*USD);

Honduras

AddUnit(lempira, context=HN, abbreviations=HNL, conversion=0.05356*USD);

Hong Kong

AddUnit(dollar, context=HK, abbreviations=HKD, conversion=0.1282*USD);

Iceland

AddUnit(krona, context=IS, abbreviations=ISK, conversion=0.01597*USD);

India

AddUnit(rupee, context=IN, abbreviations=INR, conversion=0.02291*USD);

Israel

AddUnit(shekel, context=IL, abbreviations=ILS, conversion=0.2290*USD);

Japan

AddUnit(yen, context=JP, abbreviations=JPY, conversion=0.009726*USD);

Malaysia

AddUnit(ringgit, context=MY, abbreviations=MYR, conversion=0.2632*USD);

Mexico

AddUnit(peso, context=MX, abbreviations=MXN, conversion=0.08895*USD);

Morocco

AddUnit(dirham, context=MA, abbreviations=MAD, conversion=0.1177*USD);

Neth. Antilles

AddUnit(guilder, context=AN, abbreviations=ANG, conversion=0.5618*USD);

New Zealand

AddUnit(dollar, context=NZ, abbreviations=NZD, conversion=0.7144*USD);

Norway

AddUnit(krone, context=NO, abbreviations=NOK, conversion=0.1591*USD);

Pakistan

AddUnit(rupee, context=PK, abbreviations=PKR, conversion=0.01685*USD);

Panama

AddUnit(balboa, context=PA, abbreviations=PAB, conversion=1.0000*USD);

Peru

AddUnit(nuevo_sol, context=PE, abbreviations=PEN, conversion=0.3062*USD);

Philippines

AddUnit(peso, context=PH, abbreviations=PHP, conversion=0.01803*USD);

Singapore

AddUnit(dollar, context=SG, abbreviations=SGD, conversion=0.6123*USD);

South Africa

AddUnit(rand, context=ZA, abbreviations=ZAR, conversion=0.1675*USD);

South Korea

AddUnit(won, context=KR, abbreviations=KRW, conversion=0.0009634*USD);

Sri Lanka

AddUnit(rupee, context=LK, abbreviations=LKR, conversion=0.01019*USD);

Sweden

AddUnit(krona, context=SE, abbreviations=SEK, conversion=0.1442*USD);

Switzerland

AddUnit(franc, context=CH, abbreviations=CHF, conversion=0.8437*USD);

Taiwan

AddUnit(dollar, context=TW, abbreviations=TWD, conversion=0.03150*USD);

Thailand

AddUnit(baht, context=TH, abbreviations=THB, conversion=0.02595*USD);

Trinidad/Tobago

AddUnit(dollar, context=TT, abbreviations=TTD, conversion=0.1607*USD);

Tunisia

AddUnit(dinar, context=TN, abbreviations=TND, conversion=0.8122*USD);

Examples

Add conversion rates from January 2005.

withUnits:

Automatically loading the Units[Simple] subpackage

AddUnitdollar,context=CA,abbreviations=CAD,conversion=0.8203USD

convert52000.00,units,CAD,USD

42655.60000

(1)

See Also

convert/dimensions

convert/units

Digits

evalf

Units

Units/Index

Units[AddUnit]

Units[CurrencyCodes]