int

Calculates the closest integer that is smaller than number.

int(number) → returns Numeric

int Argument Reference

number
Required

Examples sample code invoking the int function


Closest integer less than 1.8

int(1.8)

Expected Result: 1


Fork me on GitHub