News for hackers. Stuff that matters.
Re:Python rounds float values by converting them to string a... by science404 on Wednesday August 28, 2019 @09:59AM (#20819799)
Misleading title is misleading...

CPython rounds float values by converting them to string and then back

Re:Python rounds float values by converting them to string a... by duckerude on Wednesday August 28, 2019 @11:51AM (#20820986)
PyPy does it too: https://bitbucket.org/pypy/pypy/src/2fc0a29748362f2a4b99ab57...

Jython instead uses BigDecimal::doubleValue: https://github.com/jythontools/jython/blob/b9ff520f4f6523120...

But as another comment noted, BigDecimal::doubleValue can pull a similar trick: https://news.ycombinator.com/item?id=20818586