float precision

From: Date: Thu, 09 Jan 2003 04:33:23 +0000
Subject: float precision
Groups: php.general 
Request: Send a blank email to php-general+get-130866@lists.php.net to get a copy of this message
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? Thanks.

« previous php.general (#130866) next »