print(0.1 + 0.2 == 0.3)
returns
False
Why?
print(0.1 + 0.2 == 0.3)
returns
False
Why?
It's not broken, that's how floating point arithmetic works.
Is floating point math broken?
I recommend reading this http://blog.reverberate.org/2014/09/what-every-computer-programmer-should.html