note 23142 added to language.operators.arithmetic
| From: | php-general at lists dot php dot net | Date: | Wed, 10 Jul 2002 15:41:39 +0000 |
| Subject: | note 23142 added to language.operators.arithmetic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32845@lists.php.net to get a copy of this message | ||
(int)($foo / $bar) will not always work because the number "5" in float could actually be
represented as 4.9999... etc. which (int) will convert to 4.
--
http://www.php.net/manual/en/language.operators.arithmetic.php
http://master.php.net/manage/user-notes.php?action=edit+23142
http://master.php.net/manage/user-notes.php?action=delete+23142
http://master.php.net/manage/user-notes.php?action=reject+23142