"CurrencyAmount" (interpreter type)

Amount of money expressed in natural language.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (4)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]=
Translate this page: