mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30761 -- Prevented floatformat filter from returning a negative zero.
This commit is contained in:
@@ -1722,6 +1722,11 @@ displayed. For example:
|
||||
Using ``floatformat`` with no argument is equivalent to using ``floatformat``
|
||||
with an argument of ``-1``.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
In older versions, a negative zero ``-0`` was returned for negative numbers
|
||||
which round to zero.
|
||||
|
||||
.. templatefilter:: force_escape
|
||||
|
||||
``force_escape``
|
||||
|
||||
@@ -279,6 +279,9 @@ Miscellaneous
|
||||
* ``django.utils.decorators.classproperty()`` decorator is moved to
|
||||
``django.utils.functional.classproperty()``.
|
||||
|
||||
* :tfilter:`floatformat` template filter now outputs (positive) ``0`` for
|
||||
negative numbers which round to zero.
|
||||
|
||||
.. _deprecated-features-3.1:
|
||||
|
||||
Features deprecated in 3.1
|
||||
|
||||
Reference in New Issue
Block a user