This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients John Belmonte, mark.dickinson, serhiy.storchaka
Date 2021-12-06.12:15:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638792951.69.0.120734385745.issue45995@roundup.psfhosted.org>
In-reply-to
Content
To normalize negative 0.0 to 0.0 you can just add 0.0. It will work with any method of converting floats to string, there is no need to change all formatting specifications.

>>> x = -0.0
>>> x
-0.0
>>> x + 0.0
0.0
History
Date User Action Args
2021-12-06 12:15:51serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, John Belmonte
2021-12-06 12:15:51serhiy.storchakasetmessageid: <1638792951.69.0.120734385745.issue45995@roundup.psfhosted.org>
2021-12-06 12:15:51serhiy.storchakalinkissue45995 messages
2021-12-06 12:15:51serhiy.storchakacreate