In my rails console, when I add up to floats, i get a suprising result. Why?
977.90 + 112.49
=> 1090.3899999999999
Isn't the answer 1090.39 ? Why does ruby/rails return the answer it does?
In my rails console, when I add up to floats, i get a suprising result. Why?
977.90 + 112.49
=> 1090.3899999999999
Isn't the answer 1090.39 ? Why does ruby/rails return the answer it does?