On Thursday 09 January 2003 12:33, Kevin Avila wrote:
> Greetings,
>
>       I'm having a weird issue with float precision. I am decrementing the
> value of a float by 0.1. The problem is when the float I am working
> with reaches 0.1 and I decrement it again I get 1.e09 instead of the
> expected 0.0. This was also confirmed by a user in #php. Anyone have
> any ideas?

Use the BCMath functions if you require absolute precision.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
If you knew what to say next, would you say it?
*/


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

Reply via email to