Re: precision for float values in template rendering

2009-03-14 Thread ihomest...@gmail.com
thanks! this is exactly what i need. On Mar 14, 12:04 pm, Alex Gaynor wrote: > On Sat, Mar 14, 2009 at 11:02 AM, ihome wrote: > > > is there an easy way to control the precision for float values? for > > example, i have this in my template: > > > >

Re: precision for float values in template rendering

2009-03-14 Thread Alex Gaynor
On Sat, Mar 14, 2009 at 11:02 AM, ihome wrote: > > is there an easy way to control the precision for float values? for > example, i have this in my template: > > > > where float p = 0.1234123413 but i only want to show p with 3 digits > after dot like 0.123. is there a

precision for float values in template rendering

2009-03-14 Thread ihome
is there an easy way to control the precision for float values? for example, i have this in my template: where float p = 0.1234123413 but i only want to show p with 3 digits after dot like 0.123. is there a predefined way to control the precision in the rendering of template instead of having