Beware floating point arithmetic. Seriously. 0.7 + 0.1 != 0.8 (try it in your REPL of choice)