# Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
WOLFRAM LANGUAGE INTERPRETER TYPE

# "HeuristicPercent" (interpreter type)

Percentage expressed in natural language.

## Allowed FormsAllowed 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 SpecificationsRestriction Specifications

•  Restricted["HeuristicPercent",{{choices1,…}}] one among choices Restricted["HeuristicPercent",unit] convert to unit Restricted["HeuristicPercent",unit,max] a percentage below Quantity[max,unit] Restricted["HeuristicPercent",unit,{min,max}] a percentage between Quantity[min,unit] and Quantity[max,unit] Restricted["HeuristicPercent",unit,{min,max,s}] a percentage between Quantity[min,unit] and Quantity[max,unit] with step s Restricted["HeuristicPercent",Automatic,Automatic,n] a percentage whose magnitude has n-digit precision

## ExamplesExamplesopen allclose all

### Basic Examples  (3)Basic Examples  (3)

Interpret percentages:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=

If no unit is provided, convert to a percent when it seems reasonable:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=

In other cases, simply infer a percent unit:

 In[4]:=
 Out[4]=

Cf. "Percent", which always infers a percent unit:

 In[5]:=
 Out[5]=

And "PercentFraction", which always converts to a percentage:

 In[6]:=
 Out[6]=

Restrict and convert to a unit:

 In[1]:=
 Out[1]=