3 ms·As an example in Ruby (2.1.1): x = 0.1 #=> 0.1 10.times { x+=0.1 } #=> 10 x #=> 1.0999999999999999by andruby 13y agoAs an example in Ruby (2.1.1): x = 0.1 #=> 0.1 10.times { x+=0.1 } #=> 10 x #=> 1.0999999999999999