[ic] What's wrong with this syntax ?

Joachim Leidinger interchange-users@interchange.redhat.com
Sat Apr 20 20:05:00 2002


José Mª Revuelto wrote:
....
> > > constant (say 1.10), so I wrote :
> > > <td class="contentbar2" align=right><b>[calc] [subtotal] * 1.10 [/calc]
> > > </b></td>
> > >
> > > Well, it doesn't work...
> >
> > try:
> >
> > [calc] [subtotal noformat=1] * 1.10 [/calc]
> >
> > Jonathan
> > Webmaint.
> >
> My case is this: The price of an item is $10.00, and want to show its price
> in spanish pesetas. So [calc] [subtotal noformat=1] * 166.386 [/calc] show
> me: 3326.05614 Ptas. The calculation is right but I want no fractional
> digits and a . as thousand separator, so the result is "3.326 Ptas." In the
> doc, for the currency tag, the only parameters are "convert" and "noformat".
> How can I do that?

$10.00 * 166.386 = 1663.386

Why did you get 3326.05614 Ptas?

I'm in a muddle!

Please, what did you get and what did you want? Make an example!

Joachim

-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de] 
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de