Lucee Function Reference

int()

Returns the largest integer less than or equal to the given number (floor).
For negative numbers, this rounds away from zero (e.g., int(-1.7) returns -2).
The result is not limited to a 32-bit integer range and can handle large values such as epoch timestamps.

Example

int(number number):number

Category

number

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
number number  Yes Real number to round down to an integer.