note 82042 modified in function.floor by danbrown

From: Date: Thu, 10 Mar 2011 15:21:26 +0000
Subject: note 82042 modified in function.floor by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177756@lists.php.net to get a copy of this message
Note: <?php $int = 0.99999999999999999; echo floor($int); // returns 1 ?> and <?php $int = 0.9999999999999999; echo floor($int); // returns 0 ?> --was-- Note: $int = 0.99999999999999999; echo floor($int); // returns 1 and $int = 0.9999999999999999; echo floor($int); // returns 0 http://php.net/manual/en/function.floor.php

« previous php.notes (#177756) next »