OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Interpret integer numbers:

Interpreter["Integer"]["3"]

Interpreter["Integer"]["-10,651"]

Restrict in a range:

Interpreter[Restricted["Integer",{0,100}]][{"2","4","8","16","32","64","128"}]

Restrict to multiples of 3:

Interpreter[Restricted["Integer", {-Infinity,Infinity,3}]]["5"]

Restrict to the first 10 Fibonacci numbers:

Interpreter[Restricted["Integer", {Fibonacci/@Range[10]}]][{"13","11"}]

Use a custom number separator:

Interpreter["Integer",NumberSeparator->"."]["10.100"]

Use a custom pair of number signs:

Interpreter["Integer",NumberSigns->{"n","p"}]["n80"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])}, {Related Interpreter Types:  (RefLink[SemanticInteger, paclet:ref/interpreter/SemanticInteger])  ▪  (RefLink[ComputedInteger, paclet:ref/interpreter/ComputedInteger])  ▪  (RefLink[Digit, paclet:ref/interpreter/Digit])  ▪  (RefLink[Number, paclet:ref/interpreter/Number])  ▪  (RefLink[Real, paclet:ref/interpreter/Real])  ▪  (RefLink[ComplexNumber, paclet:ref/interpreter/ComplexNumber])  ▪  (RefLink[HexInteger, paclet:ref/interpreter/HexInteger])  ▪  (RefLink[OrdinalNumber, paclet:ref/interpreter/OrdinalNumber])  ▪  (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])}})}})