ballerina/lang.int : 0.0.0
Module Overview
The lang.int
module corresponds to the int
basic type.
Functions
[7]
abs | Returns the absolute value of an int value. |
fromHexString | Returns the integer that a string value represents in hexadecimal. |
fromString | Returns the integer of a string that represents in decimal. |
max | Returns the maximum of one or more int values. |
min | Returns the minimum of one or more int values. |
sum | Returns sum of zero or more int values. |
toHexString | Returns representation of an integer as hexdecimal string. |
Constants
[11]
MAX_VALUE | Maximum value of type |
MIN_VALUE | Minimum value of type |
SIGNED16_MAX_VALUE | Maximum value of type |
SIGNED16_MIN_VALUE | Minimum value of type |
SIGNED32_MAX_VALUE | Maximum value of type |
SIGNED32_MIN_VALUE | Minimum value of type |
SIGNED8_MAX_VALUE | Maximum value of type |
SIGNED8_MIN_VALUE | Minimum value of type |
UNSIGNED16_MAX_VALUE | Maximum value of type |
UNSIGNED32_MAX_VALUE | Maximum value of type |
UNSIGNED8_MAX_VALUE | Maximum value of type |
Types
[6]
Signed16 | Built-in subtype that allows non-negative integers that can be represented in 16 bits using two's complement. |
Signed32 | Built-in subtype that allows signed integers that can be represented in 32 bits using two's complement. |
Signed8 | Built-in subtype that allows non-negative integers that can be represented in 8 bits using two's complement. |
Unsigned16 | Built-in subtype that allows non-negative integers that can be represented in 16 bits. |
Unsigned32 | Built-in subtype that allows non-negative integers that can be represented in 32 bits. |
Unsigned8 | Built-in subtype that allows non-negative integers that can be represented in 8 bits. |