[issue37020] Invalid floating point multiplication result

2019-05-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Relevant doc : https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +xtreak ___ Python tracker ___ __

[issue37020] Invalid floating point multiplication result

2019-05-23 Thread SilentGhost
SilentGhost added the comment: This is a limitation of floating points representation. If you need objects representing decimal numeral, you could use decimal module. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue37020] Invalid floating point multiplication result

2019-05-23 Thread Antony
New submission from Antony : Incorrect Multiplication result of number 40.95 >>> 40.94 * 100 4094.0 >>> 40.96 * 100 4096.0 but: >>> 40.95 * 100 4095.5 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]