OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret integer numbers:

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

Restrict with an upper bound:

Interpreter[Restricted["ComputedInteger",10]][{"atomic number of helium","atomic number of xenon"}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[Integer, paclet:ref/Integer])}, {Related Interpreter Types:  (RefLink[Integer, paclet:ref/interpreter/Integer])  ▪  (RefLink[SemanticInteger, paclet:ref/interpreter/SemanticInteger])  ▪  (RefLink[Digit, paclet:ref/interpreter/Digit])  ▪  (RefLink[Number, paclet:ref/interpreter/Number])  ▪  (RefLink[OrdinalNumber, paclet:ref/interpreter/OrdinalNumber])  ▪  (RefLink[Real, paclet:ref/interpreter/Real])  ▪  (RefLink[ComplexNumber, paclet:ref/interpreter/ComplexNumber])  ▪  (RefLink[HexInteger, paclet:ref/interpreter/HexInteger])  ▪  (RefLink[RomanNumeral, paclet:ref/interpreter/RomanNumeral])  ▪  (RefLink[SemanticNumber, paclet:ref/interpreter/SemanticNumber])  ▪  (RefLink[ComputedNumber, paclet:ref/interpreter/ComputedNumber])  ▪  (RefLink[SemanticReal, paclet:ref/interpreter/SemanticReal])  ▪  (RefLink[ComputedReal, paclet:ref/interpreter/ComputedReal])  ▪  (RefLink[SemanticComplexNumber, paclet:ref/interpreter/SemanticComplexNumber])  ▪  (RefLink[ComputedComplexNumber, paclet:ref/interpreter/ComputedComplexNumber])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})