Why is it printing false when 0.1+0.1+0.1==0.3..... Can Anyone Help Me With this tag your friends...May be they know | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why is it printing false when 0.1+0.1+0.1==0.3..... Can Anyone Help Me With this tag your friends...May be they know

https://code.sololearn.com/ctkciHRbrsLn/?ref=app

4th Oct 2020, 6:33 AM
Gireesh Desineni
Gireesh Desineni - avatar
4 Answers
+ 2
Gireesh Desineni https://code.sololearn.com/cbQoBwrGhGQF/?ref=app It is not 0.3 I recommend that you familiarize yourself with discrete mathematics. Mantissa and its overflow
4th Oct 2020, 8:27 AM
Petr
4th Oct 2020, 7:35 AM
G B
G B - avatar
0
codemonkey yes but why for 0.3 it's false
4th Oct 2020, 6:53 AM
Gireesh Desineni
Gireesh Desineni - avatar