floor

(PHP 3, PHP 4 >= 4.0b1)

floor -- Round fractions down

Description

float floor (float value)

Returns the next lowest integer value by rounding down value if neccessary. The return value of floor() is still of type float as the value range of float is usually bigger than that of int.

See also ceil() and round().