[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] What's wrong with this syntax ?
Brev Patterson wrote:
>
> > Immediately after this code, I want to display the subtotal multiplied by a
> > constant (say 1.10), so I wrote :
> > <td class="contentbar2" align=right><b>[calc] [subtotal] * 1.10 [/calc]
> > </b></td>
>
> [calc interpolate=1][subtotal] * 1.10[/calc]
>
> ?
You get the price formatted! Perl can't calculate this
$a = "10 USD";
$b = "1.1";
$c = $a * $b;
Results: 0
but
$a = "10"; # WITHOUT USD
$b = "1.1";
$c = $a * $b;
Results: 11
with [subtotal noformat=1] you will get a price without any format.
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de