Re: Beware of round() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kirk.Johnson@xxxxxxxxxxx wrote:
> Thanks for the info, Jeremy. Regardless of the technical details, my code 
> still broke. I am little discouraged that an operation that should be so 
> simple has these sorts of gotchas.

There can also be some surprisingly awkward to find bugs that are not
even "deliberate" as this appears to be:

See: https://qa.mandriva.com/show_bug.cgi?id=37171

Here GCC optimisations can cause "Buggy float to string conversion (ex
"0.0:" instead of "0.1")".

Comment 16 or there abouts highlights the "solution" for those
interested. It's not a PHP bug but still thought it worth mentioning on
this thread.

Col


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux