BUILT-IN MATHEMATICA SYMBOL

UnitExchangeRate

UnitExchangeRate[currency->rate]
sets the user-specified exchange rate of .

UnitExchangeRate[currency]
retrieves the user-specified exchange rate of .

DetailsDetails

  • currency exchange rates must be specified in terms of .
  • UnitExchangeRate[All] returns a full list of user-specified exchange rates.
  • Any new exchange rate specifications will overwrite previous rates for currency.
  • Setting rate to Automatic will remove any previously set rates for currency.
  • UnitExchangeRate is Listable.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

UnitConvert automatically retrieves the latest exchange rate information for currency conversion:

In[1]:=
Click for copyable input
Out[1]=

UnitExchangeRate can be used to set a specific exchange rate between and instead:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

UnitExchangeRate[currency] can be used to retrieve the specified exchange rate:

In[1]:=
Click for copyable input
Out[1]=

Setting the rate to Automatic will remove any previous rate specifications for currency:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
New in 9.0
New to Mathematica? Find your learning path »
Have a question? Ask support »