RE: [PHP] Strange math results

From: Date: Tue, 28 Mar 2006 21:30:46 +0000
Subject: RE: [PHP] Strange math results
Groups: php.general 
Request: Send a blank email to php-general+get-232773@lists.php.net to get a copy of this message
[snip] I've got a strange problem here. I'm subtacting one variable from another, both of type "double" and if they are the same, instead of getting a result of 0, I get something like -9.99200722163E-016 Is this a bug or am I doing something wrong here? [/snip] From all of the information that you sent in your post I'd say that you're doing something wrong here.

« previous php.general (#232773) next »