[New-bugs-announce] [issue37020] Invalid floating point multiplication result
Antony
report at bugs.python.org
Thu May 23 07:55:29 EDT 2019
New submission from Antony <zz at boaboo.ru>:
Incorrect Multiplication result of number 40.95
>>> 40.94 * 100
4094.0
>>> 40.96 * 100
4096.0
but:
>>> 40.95 * 100
4095.0000000000005
checked with:
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
and
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
----------
messages: 343287
nosy: Tonimore
priority: normal
severity: normal
status: open
title: Invalid floating point multiplication result
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37020>
_______________________________________
More information about the New-bugs-announce
mailing list