"ComputedPercent"(Interpreter Type)

A percentage derived by computation.

Allowed Forms

• A percentage expressed in natural language, or a computation yielding one.

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

Examples

Basic Examples(4)

Interpret percentages:

 In:= Out= In:= Out= Interpret percentages derived by computation:

 In:= Out= In:= Out= If no unit is provided, imply a percent:

 In:= Out= Cf. "ComputedPercentFraction", which converts to a percentage:

 In:= Out= And "ComputedHeuristicPercent", which decides what to do based on heuristics:

 In:= Out= In:= Out= Restrict in a range:

 In:= Out= 