# Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
WOLFRAM LANGUAGE INTERPRETER TYPE

# "CurrencyAmount" (interpreter type)

Amount of money expressed in natural language.

## Allowed FormsAllowed Forms

• All the natural-language numbers allowed by "SemanticNumber" are supported for the quantity magnitude.
• All the natural-language units allowed by "CurrencyName" are supported for the quantity unit.

## Restriction SpecificationsRestriction Specifications

•  Restricted["CurrencyAmount",{{choices1,…}}] one among choices Restricted["CurrencyAmount",unit] convert to unit Restricted["CurrencyAmount",unit,max] an amount of money below Quantity[max,unit] Restricted["CurrencyAmount",unit,{min,max}] an amount of money between Quantity[min,unit] and Quantity[max,unit] Restricted["CurrencyAmount",unit,{min,max,s}] an amount of money between Quantity[min,unit] and Quantity[max,unit] with step s Restricted["CurrencyAmount",Automatic,Automatic,n] an amount of money whose magnitude has n-digit precision
• The bounds min and max and step s can also be expressed as quantities.

## ExamplesExamplesopen allclose all

### Basic Examples  (4)Basic Examples  (4)

Interpret currency amounts:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=

Restrict and convert to a unit:

 In[1]:=
 Out[1]=

If no unit is provided in the input string, imply US dollars:

 In[1]:=
 Out[1]=

Set the precision:

 In[1]:=
 Out[1]=