"PercentFraction" (Interpreter Type)
Percentage expressed in natural language.
Details
- "PercentFraction" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "PercentFraction" requires connectivity to the Wolfram Cloud.
- When the input is a unitless number, "PercentFraction" converts it to a percentage.
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 ["PercentFraction" , quantity] a quantity considered as a fraction of the baseline quantity
Interpretation
- "PercentFraction" yields a Quantity .
Examples
Basic Examples (3)
Interpret percentages:
If no unit is provided, convert the number to a percentage:
Cf. "Percent" , which simply infers a percent unit:
And "HeuristicPercent" , which decides what to do based on heuristics:
Interpret quantities or numbers as fractions of the given baseline: