"ComputedInteger" (Interpreter Type)
An integer number derived by computation.
Details
- "ComputedInteger" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedInteger" requires connectivity to the Wolfram Cloud.
Allowed Forms
- Any natural-language integer supported by "SemanticInteger", or a computation yielding one.
Restriction Specifications
-
Restricted["ComputedInteger",{{choices1,…}}] one among choices Restricted["ComputedInteger",max] an integer below max Restricted["ComputedInteger",{min,max}] an integer between min and max Restricted["ComputedInteger",{min,max,s}] an integer between min and max, with step s
Interpretation
- "ComputedInteger" yields an Integer, or an expression that reduces to a number via N.
Examples
Basic Examples (3)
Interpreter["ComputedInteger"]["twentythree"]Interpreter["ComputedInteger"]["-7"]Interpret integer numbers derived by computation:
Interpreter["ComputedInteger"]["3^2"]Interpreter["ComputedInteger"]["two plus six"]Interpreter["ComputedInteger"]["number of US states"]Interpreter[Restricted["ComputedInteger", 10]][{"atomic number of helium", "atomic number of xenon"}]Related Guides
History
Introduced in 2014 (10.0)