int

Calculates the closest integer that is smaller than number.

int(number) → returns numeric

int Argument Reference

number numeric
Required

Examples sample code invoking the int function

int(1.8)

Expected Result: 1


Fork me on GitHub