Martin larsson wrote:

> 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?
>
>
sry, i was testing around with different numbers so i copied wrong 
result for that litte script, just change 0.6 to 0.1 and the the result 
is right