FW: [PHP-WIN] basic variable question
| From: | HKG) | Date: | Fri, 14 Feb 2003 11:52:37 +0000 |
| Subject: | FW: [PHP-WIN] basic variable question | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18537@lists.php.net to get a copy of this message | ||
Obviously you are on to *somthing* with your first
comment, because one way to evaluate to 1.1 each
time is if for instance:
$taxrate = 0.10; // local sales tax is %10
$totalamount = $totalamount * (1 + $taxrate);
Is evaluated like:
$totalamount * (1 + $taxrate)
==> 1 * (1 + 0.1)
==> 1 * 1.1 ==> 1.1
> -----Original Message-----
> From: Matt Hillebrand [mailto:matt@medmarket.com]
> Sent: Thursday, February 13, 2003 8:34 PM
> To: 'paradiddles'; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] basic variable question
>
>
> Oh wait. Yes you are. Heck if I know. :)
>
> |-----Original Message-----
> |From: paradiddles [mailto:fojomo@sbcglobal.net]
> |Sent: Thursday, February 13, 2003 1:00 PM
> |To: php-windows@lists.php.net
> |Subject: [PHP-WIN] basic variable question
> |
> |
> |
> | Hi everyone. Why does my code work when I enter just 1 for
> |the quantity, but only returns $1.10 when I enter a quantity
> |of 2 or more?