[ic] What's wrong with this syntax ?

José Mª Revuelto interchange-users@interchange.redhat.com
Sat Apr 20 19:31:01 2002


Hi,

> -----Mensaje original-----
> De: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]En nombre de
> Jonathan Clark
> Enviado el: sábado, 20 de abril de 2002 13:51
> Para: interchange-users@interchange.redhat.com
> Asunto: RE: [ic] What's wrong with this syntax ?
>
>
> > I would like to do a computation based on the contents of the tag
> > [subtotal]
> > in the cart template.
> >
> > The code in the cart template, which displays the subtotal,
> > looks like this
> > :
> >
> > <td class="contentbar2" align=right><b>[subtotal]</b></td>
> >
> > 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>
> >
> > 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?

Thank you.

José Mª