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
Because double/float use base-2 notation and decimal base-10 notation.
Here's a useful link: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html