M
Martin larsson
Hi
i = 0
100.times {
p i += 0.6
}
results in:
5.6
5.7
5.8
5.9
5.99999999999999
6.09999999999999
6.19999999999999
on my XP maching with ruby 1.8.1-13. I used rubyinstaller to install it
if that matters
anyone more have this problem? anyway to fix it?
i = 0
100.times {
p i += 0.6
}
results in:
5.6
5.7
5.8
5.9
5.99999999999999
6.09999999999999
6.19999999999999
on my XP maching with ruby 1.8.1-13. I used rubyinstaller to install it
if that matters
anyone more have this problem? anyway to fix it?