Wolfram Language & System 11.0 (2016)|Legacy Documentation

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

"PercentFraction" (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 the number to a percentage:

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[4]:=
Click for copyable input
Out[4]=

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

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

And "HeuristicPercent", which decides what to do based on heuristics:

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

Interpret quantities or numbers as fractions of the given baseline:

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