Re: Beware of round() function

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

 



At 10:55 AM -0600 3/25/08, 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.

Not that this helps/hurts your observation.

What I find interesting is that the round function has a bias to round down.

I've proved it, but it takes a lot of calculations to demonstrate any significant difference.

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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