PHP3 Manual
PrevNext

Floor

Floor -- round fractions down

Description

int floor(float number);

Returns the next lowest integer value from number. Using floor() on integers is absolutely a waste of time.

NOTE: PHP/FI 2's floor() returned a float. Use: $new = (double)floor($number); to get the old behaviour.

See also ceil() and round().


PrevHomeNext
ExpUpgetrandmax