int

Calculates the closest integer that is smaller than number.

int(number) → returns numeric

Argument Reference

number numeric
Required

Examples
Sample code invoking the int function

int(1.8)

Expected Result: 1


Fork me on GitHub