Added tests for `floatformat` template filter for number with non-zero decimal place digit and ending in zeros.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
72b7a33929
commit
a5eb61cd9f
|
@ -17,6 +17,10 @@ u'0'
|
|||
u'7.700'
|
||||
>>> floatformat(6.000000,3)
|
||||
u'6.000'
|
||||
>>> floatformat(6.200000, 3)
|
||||
u'6.200'
|
||||
>>> floatformat(6.200000, -3)
|
||||
u'6.200'
|
||||
>>> floatformat(13.1031,-3)
|
||||
u'13.103'
|
||||
>>> floatformat(11.1197, -2)
|
||||
|
|
Loading…
Reference in New Issue