int

Calculates the closest integer that is smaller than number.

int(number) → returns Numeric

Argument Reference for the int function

number

Required: Yes

Examples sample code invoking the int function


Closest integer less than 1.8

int(1.8)

Expected Result: 1


Fork me on GitHub