> Forget currency
>
> How I inset comma in:
>
> {{ total_in|floatformat:2 }}
>
> to get : 32,525.75 for example
>
You can use this filter:

@register.filter()
def comma(value):
    locale.setlocale(locale.LC_ALL, '')
    return locale.format('%.2f', 1234.5678, True)

--~--~---------~--~----~------------~-------~--~----~
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