OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Interpret percentages:

Interpreter["ComputedPercent"]["3%"]

Interpreter["ComputedPercent"]["five percent"]

Interpret percentages derived by computation:

Interpreter["ComputedPercent"]["Senior population fraction of Florida 2009"]

Interpreter["ComputedPercent"]["12 as a percent of 46"]

If no unit is provided, imply a percent:

Interpreter["ComputedPercent"]["3.4+9.55"]

Cf. (StringTypeLink["ComputedPercentFraction", paclet:ref/interpreter/ComputedPercentFraction]), which converts to a percentage:

Interpreter["ComputedPercentFraction"]["5"]

And (StringTypeLink["ComputedHeuristicPercent", paclet:ref/interpreter/ComputedHeuristicPercent]), which decides what to do based on heuristics:

Interpreter["ComputedHeuristicPercent"][".5"]

Interpreter["ComputedHeuristicPercent"]["5"]

Restrict in a range:

Interpreter[Restricted["ComputedPercent",Automatic,{1,10}]][{"unemployment rate of italy","unemployment rate of USA","unemployment rate of Japan"}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[Quantity, paclet:ref/Quantity])}, {Related Interpreter Types:  (RefLink[Percent, paclet:ref/interpreter/Percent])  ▪  (RefLink[Quantity, paclet:ref/interpreter/Quantity])  ▪  (RefLink[PercentFraction, paclet:ref/interpreter/PercentFraction])  ▪  (RefLink[HeuristicPercent, paclet:ref/interpreter/HeuristicPercent])  ▪  (RefLink[StructuredQuantity, paclet:ref/interpreter/StructuredQuantity])  ▪  (RefLink[ComputedQuantity, paclet:ref/interpreter/ComputedQuantity])  ▪  (RefLink[ComputedPercentFraction, paclet:ref/interpreter/ComputedPercentFraction])  ▪  (RefLink[ComputedHeuristicPercent, paclet:ref/interpreter/ComputedHeuristicPercent])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})