Re: odd addition error<>?
| From: | Joao Prado Maia | Date: | Tue, 15 Aug 2000 19:15:25 +0000 |
| Subject: | Re: odd addition error<>? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11861@lists.php.net to get a copy of this message | ||
On Tue, 15 Aug 2000, callen wrote:
> Then after these two conditionals:
>
> $handling =2.00;
> echo "Fee again is $fee <br>";
> $sh += $fee;
> echo "SH is: $sh <br>";
> $sh += $handling;
> echo "Sh is $sh"; //which prints "2" when coming from block2
>
This is unlikely to help, but who knows. Maybe casting the $fee variable
would help you.
Try: $sh += (integer) $fee;
Hope that helps,
Joao
--
Joao Prado Maia
Web Developer
Kefta.com, Inc