Re: Re: [fw-general] Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev
| From: | Marcus Boerger | Date: | Tue, 17 Apr 2007 17:33:24 +0000 |
| Subject: | Re: Re: [fw-general] Re: [PHP-DEV] ZF 0.8.0 Unit Tests behaving different on PHP 5.2.1 and PHP 5.2.2-dev | ||
| References: | 1 2 | Groups: | php.internals php.qa |
| Request: | Send a blank email to php-qa+get-28195@lists.php.net to get a copy of this message | ||
Hello Lukas,
float numbers are never perfect values. So should in anyway never rely
on a certain output format. So there is nothing to document here.
best regards
marcus
Tuesday, April 17, 2007, 10:16:39 AM, you wrote:
> Dmitry Stogov wrote:
>> It is bad practice to use echo $float or var_dump($float)
>> because they depends on php.ini settings.
>> You should use printf() of number_format() for deterministic result.
>>
>> The float formatting algorithms were changed because of
>> licensing issues and new ones are not 100% compatible with
>> previous ones.
> Was this documented in the upgrading guide?
> regards,
> Lukas
Best regards,
Marcus