[New-bugs-announce] [issue34358] round() combined with product outputs ugly result
Sandu
report at bugs.python.org
Wed Aug 8 08:26:39 EDT 2018
New submission from Sandu <sandu.ursu at gmail.com>:
`from scipy import stats`
`a = stats.norm.cdf(2.1882658846227234)`
`round(a,4)` gives:
`0.9857`
`round(a,4)*100` one would expect to output 98.57.
It returns:
`98.57000000000001`
For comparison, if I multiply with 10 or 1000 the output is as expected.
----------
messages: 323276
nosy: ursus
priority: normal
severity: normal
status: open
title: round() combined with product outputs ugly result
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34358>
_______________________________________
More information about the New-bugs-announce
mailing list