New submission from Antony <z...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37020>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to