mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed redundant docs addition across two commits
d5c3c45f2fa70492e6b5
This commit is contained in:
@@ -1528,17 +1528,6 @@ displayed. For example:
|
|||||||
``34.26000`` ``{{ value|floatformat:"-3" }}`` ``34.260``
|
``34.26000`` ``{{ value|floatformat:"-3" }}`` ``34.260``
|
||||||
============ ================================ ==========
|
============ ================================ ==========
|
||||||
|
|
||||||
If the argument passed to ``floatformat`` is 0 (zero), it will round the number
|
|
||||||
to the nearest integer.
|
|
||||||
|
|
||||||
============ ================================ ==========
|
|
||||||
``value`` Template Output
|
|
||||||
============ ================================ ==========
|
|
||||||
``34.23234`` ``{{ value|floatformat:"0" }}`` ``34``
|
|
||||||
``34.00000`` ``{{ value|floatformat:"0" }}`` ``34``
|
|
||||||
``39.56000`` ``{{ value|floatformat:"0" }}`` ``40``
|
|
||||||
============ ================================ ==========
|
|
||||||
|
|
||||||
Using ``floatformat`` with no argument is equivalent to using ``floatformat``
|
Using ``floatformat`` with no argument is equivalent to using ``floatformat``
|
||||||
with an argument of ``-1``.
|
with an argument of ``-1``.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user