int
Round down to the nearest integer.
Syntax
Section titled “Syntax”v = int(number)Description
Section titled “Description”Returns the largest integer less than or equal to number. Same as floor for positive numbers; for negative numbers, int(-2.5) is -3, not -2.
Examples
Section titled “Examples”int(8.7) % 8int(-8.7) % -9