int.parse Function |
The int.parse function converts a given expression to an integer value.
This function can be useful for converting string values to numeric values.
int(expr);
expr | Required. An expression to convert to an integer |
An integer value.
PRINT int.parse("3"); /* 3 */
float.parse - convert a given expression to a floating-point value
math.round - round a number to the nearest integer