Functions -
lang.int
abs | Return absolute value of |
fromHexString | Returns the integer that |
fromString | Return the integer that |
max | Maximum of all the arguments. |
min | Minimum of all the arguments. |
sum | Sum of all the arguments. 0 if no args |
toHexString | Returns representation of |
Returns the integer that s
represents in hexadecimal.
Both uppercase A-F and lowercase a-f are allowed.
It may start with an optional +
or -
sign.
No 0x
or 0X
prefix is allowed.
Returns an error if the s
is not in an allowed format.
Parameters
- s string
-
hexadecimal string representation of int value
Return the integer that s
represents in decimal.
Returns error if s
is not the decimal representation of an integer.
The first character may be +
or -
.
This is the inverse of value:toString
applied to an int
.
Parameters
- s string
-
string representation of a integer value
Maximum of all the arguments.
Parameters
- n int
-
first argument to check for max value
- ns int[]
-
rest of the argument to check for max value
-
Return Type
(int) maximum value of all provided values
Minimum of all the arguments.
Parameters
- n int
-
first argument to check for min value
- ns int[]
-
rest of the argument to check for min value
-
Return Type
(int) min value of all provided values