note 16832 added to function.floor
| From: | staeho at dreamwiz dot com | Date: | Thu, 15 Nov 2001 05:58:02 +0000 |
| Subject: | note 16832 added to function.floor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20865@lists.php.net to get a copy of this message | ||
$tmpInt = 2.4;
$tmpInt2 = 2.6;
$tmpInt = floor($tmpInt);
$tmpInt2 = floor($tmpInt2);
echo("2.4 = ".$tmpInt); // --> result is 2
echo("2.6 = ".$tmpInt2);// --> result is 2 also
--
http://www.php.net/manual/en/function.floor.php
http://master.php.net/manage/user-notes.php?action=edit+16832
http://master.php.net/manage/user-notes.php?action=delete+16832
http://master.php.net/manage/user-notes.php?action=reject+16832