Rock wrote:
> Is there a template filter for turning a large integer into a human
> readable number?
> 
> 1234567 --> 1,234,567
> 12345   --> 12,345
> 
> I don't think that python built-in formatting can do this. (Am I
> wrong?)
> 
> Assuming there isn't already a simple filter that will do this, what do
> I need to learn about in order to create my own filter?
> 
> Rock

http://djangoutils.python-hosting.com/file/utils/trunk/templatetags/utils.py 
(shameless self promotion ;) )

This still needs work for various locales.

-- 
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG
http://studioquattro.biz/
http://djnesh.blogspot.com/  |  http://djnesh-django.blogspot.com/ |  
http://djangoutils.python-hosting.com/
Registered Linux User 282159 [http://counter.li.org]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to