note 11863 added to language.types.double.php
| From: | steve at lists dot php dot net | Date: | Sat, 10 Mar 2001 16:27:48 +0000 |
| Subject: | note 11863 added to language.types.double.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12164@lists.php.net to get a copy of this message | ||
Statistically correct rounding function:
$rounded = floor(($float) +0.5);
Hope this helps.
http://www.php.net/manual/en/language.types.double.php