Re: Re: PHP 4.0 Bug #5139 Updated: Subtraction among float-point numbers
| From: | Stanislav Malyshev | Date: | Tue, 20 Jun 2000 09:24:19 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5139 Updated: Subtraction among float-point numbers | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21805@lists.php.net to get a copy of this message | ||
ED>> Why do they have different results?
Because you are doing different things. 1+(2+3) is not the same code as
(1+2)+3, even if the produce same result.
ED>> Why does PHP display different digits for the same float-point value?
See above.
ED>> What rule does PHP obey when display a float-point value?
From what I see, it's 12 digits by default.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665