[issue32956] python 3 round bug

2018-02-26 Thread M Hsia
M Hsia <mins...@yahoo.com> added the comment: import sys print(sys.version) for i in range(10): test=i+0.5 print (test,round(test,0)) 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] 0.5 0.0 1.5 2.0 2.5 2.0 3.5 4.0 4.5 4.0 5

[issue32956] python 3 round bug

2018-02-26 Thread M Hsia
New submission from M Hsia <mins...@yahoo.com>: import sys print(sys.version) for i in range(10): test=i+0.5 print (test,round(test,0)) 3.6.3 |Anaconda custom (64-bit)| (default, Nov 8 2017, 15:10:56) [MSC v.1900 64 bit (AMD64)] 0.5 0.0 1.5 2.0 2.5 2