Re: PHP has a bug...?

From: Date: Tue, 06 Apr 2004 11:37:04 +0000
Subject: Re: PHP has a bug...?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182454@lists.php.net to get a copy of this message
From: "Stephen Craton" <webmaster@melchior.us> > I was making a parabola grapher and I was testing out some values. Part of > the script is to take the variable b and multiply it was negative one, then > multiply by 2 times a. I entered a test value where a equals 1, b equals 0, > and c equals 0. The result told me that -1 times 0 is -0. > > Here's the code I'm using: > > $x = (-1 * $b) / (2 * $a); What version of PHP and what OS? I don't see this replicated on 4.3.3/Win2k. ---John Holmes...

« previous php.general (#182454) next »