"Percent" (Interpreter Type)
Percentage expressed in natural language.
Details
- "Percent" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Percent" requires connectivity to the Wolfram Cloud.
Allowed 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 Specifications
-
Restricted["Percent",{{choices1,…}}] one among choices Restricted["Percent",unit] convert to unit Restricted["Percent",unit,max] a percentage below Quantity[max,unit] Restricted["Percent",unit,{min,max}] a percentage between Quantity[min,unit] and Quantity[max,unit] Restricted["Percent",unit,{min,max,s}] a percentage between Quantity[min,unit] and Quantity[max,unit] with step s Restricted["Percent",Automatic,Automatic,n] a percentage whose magnitude has n-digit precision
Examples
Basic Examples (3)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-sfcal2
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-rae2nv
Out[2]=2

The percent sign can be omitted:
In[1]:=1

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-p83p1r
Out[1]=1

Cf. "PercentFraction", which converts to a percentage:
In[2]:=2

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-h3nnba
Out[2]=2

And "HeuristicPercent", which decides what to do based on heuristics:
In[3]:=3

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-71rswb
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-0fth1x
Out[4]=4

In[1]:=1

✖
https://wolfram.com/xid/0coo5dncat7b0j8aza2y-zf5rc4
Out[1]=1
