Re: Beware of round() function

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

 



Kirk.Johnson@xxxxxxxxxxx wrote:
Beware: round() apparently has changed its behavior from PHP 4.
This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result.

--
Jeremy Privett
C.E.O. & C.S.A.
Omega Vortex Corporation

http://www.omegavortex.net

Please note: This message has been sent with information that could be confidential and meant only for the intended recipient. If you are not the intended recipient, please delete all copies and inform us of the error as soon as possible. Thank you for your cooperation.


--
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