+ 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
4 Respuestas
+ 4
Some similar threads that could be of your interest.
https://www.sololearn.com/discuss/711763/?ref=app
https://www.sololearn.com/discuss/1477626/?ref=app
https://www.sololearn.com/discuss/1288636/?ref=app
https://www.sololearn.com/discuss/72830/?ref=app
+ 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
+ 1
You can find a nice explaination on this topic here:
https://medium.com/better-programming/why-is-0-1-0-2-not-equal-to-0-3-in-most-programming-languages-99432310d476
0
codemonkey yes but why for 0.3 it's false