"ComputedPercentFraction" (Interpreter Type)
A percentage fraction derived by computation.
Details
- "ComputedPercentFraction" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedPercentFraction" requires connectivity to the Wolfram Cloud.
- When the computation yields a unitless number, "ComputedPercentFraction" converts it to a percentage.
Restriction Specifications
-
Restricted["ComputedPercentFraction",{{choices1,…}}] one among choices Restricted["ComputedPercentFraction", quantity] a quantity considered as a fraction of the baseline quantity
Interpretation
- "ComputedPercentFraction" yields a Quantity.
Examples
Basic Examples (4)
Interpreter["ComputedPercentFraction"]["5 percent"]Interpret percentages derived by computation:
Interpreter["ComputedPercentFraction"]["unemployment rate of Greece"]If no unit is provided, convert the number to a percentage:
Interpreter["ComputedPercentFraction"]["3/17"]Interpreter["ComputedPercentFraction"]["1"]Interpreter["ComputedPercentFraction"]["Germany GDP / Europe "]Cf. "ComputedPercent", which simply infers a percent unit:
Interpreter["ComputedPercent"]["1+2"]And "ComputedHeuristicPercent", which decides what to do based on heuristics:
Interpreter["ComputedHeuristicPercent"]["Germany GDP / Europe "]Interpreter["ComputedHeuristicPercent"]["1+2"]Interpret quantities or numbers as fractions of the given baseline:
Interpreter[Restricted["ComputedPercentFraction", Entity["Country", "UnitedStates"][EntityProperty["Country", "Population", {}]]]]["Illinois population"]Related Guides
History
Introduced in 2016 (10.4)