Re: odd addition error<>?

From: Date: Tue, 15 Aug 2000 18:40:13 +0000
Subject: Re: odd addition error<>?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11853@lists.php.net to get a copy of this message
On Tue, 15 Aug 2000, callen wrote: > Greetings! > > > The following bit of code gives a strange result! > At one point it comes out with the correct values, such that the > addition that is performed is correct. > At line 2 $fee always is what it should be (lets say 3.71), when it gets > down to line 4 sometimes the value of $sh is 0. > > The value of $fee changes based upon a block of code that it comes from, > these two different blocks of codes are > based upon simple if statements , and the variable $fee always carries > its value to line 2. > > If the script goes thru the first block of code it performs the addtion > correctly, if it goes thru the second > The addition fails at line 3 (line 4 echoes out SH is: 0), although the > value $fee is correct in line 2. > > what can this possibly mean? > ???? > I have no idea, please show us the complete code regarding these routines. Regards, Joao -- Joao Prado Maia Web Developer Kefta.com, Inc

« previous php.general (#11853) next »