[issue39749] python 3.8.1 (3.14 * 10 = 31.400000002 bug)

2020-02-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: This behaviour is shared by all programming languages that use floating point numbers. For example, this is Ruby: [steve@ando ~]$ irb irb(main):001:0> 10 * 3.14 == 31.4 => false irb(main):002:0> 10 * 3.14 - 31.4 => 3.5527136788005e-15

[issue39749] python 3.8.1 (3.14 * 10 = 31.400000002 bug)

2020-02-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a known behavior : https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +xtreak ___ Python tracker ___

[issue39749] python 3.8.1 (3.14 * 10 = 31.400000002 bug)

2020-02-25 Thread 꿈돌
New submission from 꿈돌 : 10 * 3.14 31.402 there is a bug in 3.8.1 python, 10 * 3.14 is 31.4 but in python 31.402 -- messages: 362641 nosy: 꿈돌 priority: normal severity: normal status: open title: python 3.8.1 (3.14 * 10 = 31.40002 bug)