Integer! values are 32-bit numbers with no decimal point. They span a range from
integer! does not auto convert to
float! on overflow.
Integer! is a member of the following typesets:
2. Literal syntax
A sequence of digits with no decimal point.
- immediately before the first digit indicates the positive or negative sign of the integer.
Leading zeros are ignored.
>> +001234 == 1234
' is used as a place value separator for large values and can appear anywhere after the first digit.
' after the last digit will raise an error:
>> 60'000'000' *** Syntax Error: invalid integer! at "60'000'000'" *** Where: do *** Stack: load
All comparators can be applied on
=, ==, <>, >, <, >=, <=, =?. In addition,
max are also supported.
An integer value can be converted at runtime to a
string! by using a
>> to float! 42 == 42.0 >> to string! 42 == "42"
float! are combined in an expression, the result will be a
>> 42 * 42.0 == 1764.0
5. Testing values
integer? to check if a value is of the
>> integer? 42 == true
type? to return the datatype of a given value.
>> type? 42 == integer!