Документ взят из кэша поисковой машины. Адрес оригинального документа : http://oit.cmc.msu.ru/php/function.floor.html
Дата изменения: Sun Feb 3 22:44:05 2002
Дата индексирования: Mon Oct 1 20:58:07 2012
Кодировка:
floor

floor

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

floor -- Round fractions down

Description

float floor ( float value)

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

Example 1. floor() examples

$four = floor(4.3);   // $four = 4.0;
$nine = floor(9.999); // $nine = 9.0;

See also ceil() and round().