﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30761	"The floatformat filter sometimes returns ""-0"" instead of ""0""."	Sky Christensen	Sky Christensen	"For values between 0 and -0.5, the floatformat filter returns ""-0"" where I would expect it to return ""0"".

For example:

{{{
$ python -m django --version
2.2.5
$ ./manage.py shell
Python 3.5.3 (default, Sep 27 2018, 17:25:39) 
[GCC 6.3.0 20170516] on linux
Type ""help"", ""copyright"", ""credits"" or ""license"" for more information.
(InteractiveConsole)
>>> from django.template.defaultfilters import floatformat
>>> floatformat(-0.1, 0)
'-0'
>>> floatformat(-0.01, 1)
'-0.0'
>>> floatformat(-0.001, 2)
'-0.00'
>>> floatformat(-0.4, 0)
'-0'
}}}

If others agree that this is a bug, I'll submit a patch."	Bug	closed	Template system	2.2	Normal	fixed			Accepted	1	0	0	0	1	0
