Re: stringformat in template

2006-03-09 Thread Rob Slotboom
Dear Geert, I entered {{ total_amount|stringformat:".2f" }} and it realy worked :-) Actualy I red the STRINGFORMAT docu but I didn't get the clue. Now I do... Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: stringformat in template

2006-03-08 Thread Geert Vanderkelen
Hi Rob, On Mar 9, 2006, at 1:22 AM, Rob Slotboom wrote: > > I tried to use stringformat within a template but without success. > This is what I want in 'normal' syntax': > > return "%.2f" % total_amount > > It returns a two decimal value. > > But how to use it in the template??? Try this in a t

Re: stringformat in template

2006-03-08 Thread limodou
On 3/9/06, Rob Slotboom <[EMAIL PROTECTED]> wrote: > > I tried to use stringformat within a template but without success. > This is what I want in 'normal' syntax': > > return "%.2f" % total_amount > > It returns a two decimal value. > > But how to use it in the template??? > Where and how do you

stringformat in template

2006-03-08 Thread Rob Slotboom
I tried to use stringformat within a template but without success. This is what I want in 'normal' syntax': return "%.2f" % total_amount It returns a two decimal value. But how to use it in the template??? --~--~-~--~~~---~--~~ You received this message because