"ComputedCurrencyAmount" (Interpreter Type)
An amount of money derived by computation.
Details
- "ComputedCurrencyAmount" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedCurrencyAmount" requires connectivity to the Wolfram Cloud.
Allowed Forms
- Any natural-language date supported by "CurrencyAmount", or a computation yielding one.
Restriction Specifications
-
Restricted["ComputedCurrencyAmount",{{choices1,…}}] one among choices Restricted["ComputedCurrencyAmount",unit] convert to unit Restricted["ComputedCurrencyAmount",unit,max] a quantity below Quantity[max,unit] Restricted["ComputedCurrencyAmount",unit,{min,max}] a quantity between Quantity[min,unit] and Quantity[max,unit] Restricted["ComputedCurrencyAmount",unit,{min,max,s}] a quantity between Quantity[min,unit] and Quantity[max,unit] with step s - The bounds min and max and step s can also be expressed as quantities.
Interpretation
- "ComputedCurrencyAmount" yields a Quantity.
Examples
Basic Examples (3)
Interpreter["ComputedCurrencyAmount"]["10.99 yen"]Interpreter["ComputedCurrencyAmount"]["$1000"]Interpret amounts of money derived by computation:
Interpreter["ComputedCurrencyAmount"]["US government debt"]Interpreter["ComputedCurrencyAmount"]["300$/day for 15 weeks"]If no unit is provided in the input string, imply US dollars:
Interpreter["ComputedCurrencyAmount"]["5*100*52"]See Also
Interpreter SemanticImport Restricted Failure Quantity
Interpreter Types: CurrencyAmount Quantity CurrencyName CreditCardNumber StructuredQuantity ComputedQuantity
Related Guides
History
Introduced in 2014 (10.0)