I just encountered this and can't figure out why exactly Ruby behaves this way.
Could someone explain why in Ruby:
6.84 - 3.6 == 3.2399999999999998
and not just 3.24? I know that it's related to the binary representation of those number and that
(Decimal('6.84') - Decimal('3.6'))
would return the expected results. I'm just curious about the detailed explanation of the Float behavior.