Re: Beware of round() function
| From: | tedd | Date: | Tue, 25 Mar 2008 20:31:11 +0000 |
| Subject: | Re: Beware of round() function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272111@lists.php.net to get a copy of this message | ||
At 10:55 AM -0600 3/25/08, Kirk.Johnson@zootweb.com 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