"ComputedPercent" (Interpreter Type)
A percentage derived by computation.
Details
- "ComputedPercent" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedPercent" requires connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["ComputedPercent",{{choices1,…}}] one among choices Restricted["ComputedPercent",unit] convert to unit Restricted["ComputedPercent",unit,max] a percentage below Quantity[max,unit] Restricted["ComputedPercent",unit,{min,max}] a percentage between Quantity[min,unit] and Quantity[max,unit] Restricted["ComputedPercent",unit,{min,max,s}] a percentage between Quantity[min,unit] and Quantity[max,unit] with step s
Interpretation
- "ComputedPercent" yields a Quantity.
Examples
Basic Examples (4)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0x9ft3i8ea38fq35nhu5tg3u-i6huqe
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0x9ft3i8ea38fq35nhu5tg3u-jn5yym
Out[2]=2

Interpret percentages derived by computation:
In[1]:=1

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

In[2]:=2

✖
https://wolfram.com/xid/0x9ft3i8ea38fq35nhu5tg3u-73k0cv
Out[2]=2

If no unit is provided, imply a percent:
In[1]:=1

✖
https://wolfram.com/xid/0x9ft3i8ea38fq35nhu5tg3u-4oiqaw
Out[1]=1

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

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

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

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

In[4]:=4

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

In[1]:=1

✖
https://wolfram.com/xid/0x9ft3i8ea38fq35nhu5tg3u-vfhvom
Out[1]=1
