+ 2

[DUPLICATE] Why 0.1+0.2 is not equal to 0.3 in python?

a=0.1 b=0.2 print(a+b==0.3) ####output### false I did some googling but I find the explanations very difficult to understand, I am beginner in programming

12th Jun 2018, 1:53 PM
Sujith
2 Answers
+ 8
It's already answered here 😊 https://www.sololearn.com/discuss/1288636/?ref=app
12th Jun 2018, 1:57 PM
Nikhil
Nikhil - avatar
12th Jun 2018, 1:58 PM
Akash Pal
Akash Pal - avatar