"Percent" (Interpreter Type)
Percentage expressed in natural language.
Details
- "Percent" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Percent" requires connectivity to the Wolfram Cloud.
Allowed Forms
- All the natural language numbers allowed by "SemanticNumber" are supported for the quantity magnitude.
- The unit can be expressed in natural language or via abbreviations or symbols.
Restriction Specifications
-
Restricted["Percent",{{choices1,…}}] one among choices Restricted["Percent",unit] convert to unit Restricted["Percent",unit,max] a percentage below Quantity[max,unit] Restricted["Percent",unit,{min,max}] a percentage between Quantity[min,unit] and Quantity[max,unit] Restricted["Percent",unit,{min,max,s}] a percentage between Quantity[min,unit] and Quantity[max,unit] with step s Restricted["Percent",Automatic,Automatic,n] a percentage whose magnitude has n-digit precision
Examples
Basic Examples (3)
The percent sign can be omitted:
Cf. "PercentFraction", which converts to a percentage:
And "HeuristicPercent", which decides what to do based on heuristics: