Int
128-bit signed integers.
The rounding methods return the receiver unchanged.
Inherits from: Num
Constructor
Int()
Converts a value to an integer.
Int accepts an integer, a boolean, or an integral float. It rejects
fractional floats and interpretive conversions such as parsing strings.
The lowercase int function performs coercion and parsing:
Fields
MAX @ Int[get, set]Largest representable integer.
MIN @ Int[get, set]Smallest representable integer.
Methods
(band) other -> Int
Computes bitwise AND.
Parameters
| Name | Type | Description |
|---|---|---|
other |
(Int | Bool) |
(bnot)() -> Int
Computes bitwise NOT.
(bor) other -> Int
Computes bitwise OR.
Parameters
| Name | Type | Description |
|---|---|---|
other |
(Int | Bool) |
(bxor) other -> Int
Computes bitwise XOR.
Parameters
| Name | Type | Description |
|---|---|---|
other |
(Int | Bool) |
(shl) other -> Int
Shifts left.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Int |
(shr) other -> Int
Shifts right arithmetically, sign-extending negative values.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Int |