Hi,

You are looking for Django Templates (
http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs)
floatformat I believe:
{{ value|floatformat:2 }}
or in this case:
{{ my_model.month_allocation|floatformat:2 }}

-Marzia

On Fri, Dec 12, 2008 at 6:57 AM, Shay Ben Dov <shay.ben...@gmail.com> wrote:

>
> I have db.Model with
>
> month_allocation = db.FloatProperty()
>
> I want to output it in an html template in the following formats:
>
> the number with 2 decimal places.
>
> An example and code -- how to write it is more than welcomed.
>
> Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to