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)

"Percent" (interpreter type)

Percentage expressed in natural language.

DetailsDetails

  • "Percent" can be used in Interpreter and related constructs, including deployed smart form fields.
  • Use of "Percent" requires connectivity to the Wolfram Cloud.

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]=

The percent sign can be omitted:

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

Cf. "PercentFraction", which converts to a percentage:

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

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

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

Restrict in a given range:

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