Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #3693 -- Fixed RST error in floatformat docstring. Thanks, Simon

Greenhill.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 659aa8f01a085bba673c5ecdbd6902cb3bff35f9 1 parent e833595
@malcolmt malcolmt authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 django/template/defaultfilters.py
View
17 django/template/defaultfilters.py
@@ -70,14 +70,15 @@ def floatformat(text, arg=-1):
With a negative numeric argument, it will display that many decimal
places -- but only if there's places to be displayed.
Examples:
- num1 = 34.23234
- num2 = 34.00000
- num1|floatformat results in 34.2
- num2|floatformat is 34
- num1|floatformat:3 is 34.232
- num2|floatformat:3 is 34.000
- num1|floatformat:-3 is 34.232
- num2|floatformat:-3 is 34
+
+ * num1 = 34.23234
+ * num2 = 34.00000
+ * num1|floatformat results in 34.2
+ * num2|floatformat is 34
+ * num1|floatformat:3 is 34.232
+ * num2|floatformat:3 is 34.000
+ * num1|floatformat:-3 is 34.232
+ * num2|floatformat:-3 is 34
"""
try:
f = float(text)
Please sign in to comment.
Something went wrong with that request. Please try again.