Re: [PHP] odd addition error<>? From: Joao Prado Maia (jpm <email protected>)
Date: 08/15/00

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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>