Hacker News new | past | comments | ask | show | jobs | submit login

As an example in Ruby (2.1.1):

x = 0.1 #=> 0.1 10.times { x+=0.1 } #=> 10 x #=> 1.0999999999999999




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: