Integer! values are 32-bit numbers with no decimal point. They span a range from -2147483648 to 2147483647.
By design integer! does not auto convert to float! on overflow.
Integer! is a member of the following typesets: immediate!, number!, scalar!
A sequence of digits with no decimal point.
1234
+ or - immediately before the first digit indicates the positive or negative sign of the integer.
-1234
+1234
Leading zeros are ignored.
>> +001234
== 1234Single quote ' is used as a place value separator for large values and can appear anywhere after the first digit.
60'000'000A trailing ' after the last digit will raise an error:
>> 60'000'000'
*** Syntax Error: invalid integer! at "60'000'000'"
*** Where: do
*** Stack: loadAll comparators can be applied on integer!: =, ==, <>, >, <, >=, <=, =?. In addition, min, and max are also supported.
An integer value can be converted at runtime to a float! or string! by using a to conversion.
>> to float! 42
== 42.0
>> to string! 42
== "42"If integer! and float! are combined in an expression, the result will be a float! value.
>> 42 * 42.0
== 1764.0