"ComputedHeuristicPercent" (Interpreter Type)
A percentage derived by computation.
Details
- "ComputedHeuristicPercent" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedHeuristicPercent" requires connectivity to the Wolfram Cloud.
- When the computation yields a unitless number, "ComputedHeuristicPercent" heuristically decides whether to convert it to a percentage or to infer a percent unit.
Restriction Specifications
-
Restricted["ComputedHeuristicPercent",{{choices1,…}}] one among choices Restricted["ComputedHeuristicPercent",unit] convert to unit Restricted["ComputedHeuristicPercent",unit,max] a percentage below Quantity[max,unit] Restricted["ComputedHeuristicPercent",unit,{min,max}] a percentage between Quantity[min,unit] and Quantity[max,unit] Restricted["ComputedHeuristicPercent",unit,{min,max,s}] a percentage between Quantity[min,unit] and Quantity[max,unit] with step s
Interpretation
- "ComputedHeuristicPercent" yields a Quantity.
Examples
Basic Examples (4)
Interpret percentages derived by computation:
If no unit is provided, convert to a percent when it seems reasonable:
In other cases, simply infer a percent unit:
Cf. "ComputedPercent", which always infers a percent unit:
And "ComputedPercentFraction", which always converts to a percentage: