"ComputedPercent" (Interpreter Type)
A percentage derived by computation.
Details
- "ComputedPercent" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedPercent" requires connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["ComputedPercent",{{choices1,…}}] one among choices Restricted["ComputedPercent",unit] convert to unit Restricted["ComputedPercent",unit,max] a percentage below Quantity[max,unit] Restricted["ComputedPercent",unit,{min,max}] a percentage between Quantity[min,unit] and Quantity[max,unit] Restricted["ComputedPercent",unit,{min,max,s}] a percentage between Quantity[min,unit] and Quantity[max,unit] with step s
Interpretation
- "ComputedPercent" yields a Quantity.
Examples
Basic Examples (4)
Interpreter["ComputedPercent"]["3%"]Interpreter["ComputedPercent"]["five percent"]Interpret percentages derived by computation:
Interpreter["ComputedPercent"]["Senior population fraction of Florida 2009"]Interpreter["ComputedPercent"]["12 as a percent of 46"]If no unit is provided, imply a percent:
Interpreter["ComputedPercent"]["3.4+9.55"]Cf. "ComputedPercentFraction", which converts to a percentage:
Interpreter["ComputedPercentFraction"]["5"]And "ComputedHeuristicPercent", which decides what to do based on heuristics:
Interpreter["ComputedHeuristicPercent"][".5"]Interpreter["ComputedHeuristicPercent"]["5"]Interpreter[Restricted["ComputedPercent", Automatic, {1, 10}]][{"unemployment rate of italy", "unemployment rate of USA", "unemployment rate of Japan"}]Related Guides
History
Introduced in 2015 (10.2) | Updated in 2016 (10.4)