PHP/Math/floor

Материал из Web эксперт
Перейти к: навигация, поиск

float floor ( float num ) rounds it to the nearest integer below its current value

   <source lang="html4strict">

$number = floor(11.1); // 11

   $number = floor(11.9); // 11
   $number = floor(11); // 11
 
 </source>