Link Search Menu Expand Document

int

Explanation Truncate the digits after the decimal point of a floating point number.
Call format var a = int( arg )
Return value Returns the number given by the argument, rounded down to the nearest whole number.
Arguments Number arg Original number
Exception None
Example of use
var a;
var b;
b = 123.456;
a = int(b);    /* aは123となる */
Related item