"CurrencyAmount" (Interpreter Type)

Amount of money expressed in natural language.

Details

Allowed 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 Specifications

Interpretation

Examples

Basic Examples  (4)

Interpret currency amounts:

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

Restrict and convert to a unit:

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

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

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

Set the precision:

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

Related Interpreters

See Also

Interpreter  SemanticImport  Restricted  Failure  Quantity