SIGN IN SIGN UP

bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435)

* Fix failure of _Py_dg_dtoa to remove trailing zeros

* Add regression test and news entry

* Add explanation about why it's safe to strip trailing zeros

* Make code safer, clean up comments, add change note at top of file

* Nitpick: avoid implicit int-to-float conversion in tests
M
Mark Dickinson committed
895c9c1d438367722f74f437fda96767d770662b
Parent: 2831642
Committed by GitHub <noreply@github.com> on 5/29/2020, 1:23:57 PM