Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

"HeuristicPercent" (interpreter type)

Percentage expressed in natural language.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Interpret percentages:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

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

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

In other cases, simply infer a percent unit:

In[4]:=
Click for copyable input
Out[4]=

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

In[5]:=
Click for copyable input
Out[5]=

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

In[6]:=
Click for copyable input
Out[6]=

Restrict and convert to a unit:

In[1]:=
Click for copyable input
Out[1]=