[Zope-dev] DTML Multiplication
John Fohrman
fohrman@mediaone.net
Thu, 2 Dec 1999 02:25:21 -0500
Bingo! Thanks.
> -----Original Message-----
> From: Stuart 'Zen' Bishop [mailto:zen@cs.rmit.edu.au]
> Sent: Thursday, December 02, 1999 2:11 AM
> To: John Fohrman
> Cc: Zope Maliing List
> Subject: RE: [Zope-dev] DTML Multiplication
>
>
> On Thu, 2 Dec 1999, John Fohrman wrote:
>
> > Thanks, Jim, but this doesn't work; I still get the same error
> -- any other
> > suggestions?
>
> > > <dtml-let new_val="qty*value">
> > > <dtml-call "REQUEST.set('totalCost',new_val)">
> > > </dtml-let>
>
>
> Try:
>
> <dtml-let new_val="_.int(qty)*_.float(value)">
> <dtml-call "REQUEST.set('totalCost',new_val)">
> </dtml-let>
>
> qty and value might be strings (or something) rather than numeric types.
>
> --
> ___
> // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au
> // E N Senior Systems Alchemist Play:
> zen@shangri-la.dropbear.id.au
> //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
>