"Integer" (Interpreter Type)
Integer number in a standard format.
Details
- "Integer" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Integer" does not require connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["Integer",{{choices1,…}}] one among choices Restricted["Integer",max] an integer below max Restricted["Integer",{min,max}] an integer between min and max Restricted["Integer",{min,max,s}] an integer between min and max, with step s
Options
- The following options can be used:
-
DigitBlock Infinity number of digits between breaks NumberSeparator {","," "} string to insert at breaks between blocks NumberSigns {"-",""} strings to use for signs of negative and positive numbers
Examples
Basic Examples (2)
Interpreter["Integer"]["3"]Interpreter["Integer"]["-10,651"]Interpreter[Restricted["Integer", {0, 100}]][{"2", "4", "8", "16", "32", "64", "128"}]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"]Related Guides
History
Introduced in 2014 (10.0)