diff options
| author | Sky <sky@skychristensen.com> | 2019-10-31 13:05:26 +1100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-31 10:48:35 +0100 |
| commit | 3cf907c20c4f4d94f649fbb93a006af5c61b30b8 (patch) | |
| tree | e12dc362ce4a95d621a7046582de751ec893e209 /docs/ref | |
| parent | 459de8dc29a45a40f3c22cb63ebd2b82336f7192 (diff) | |
Fixed #30761 -- Prevented floatformat filter from returning a negative zero.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index b5ebff2b73..34c5a5c005 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -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`` |
