Re: [Gambas-user] Problem with float value

2010-04-25 Thread BenoƮt Minisini
> Hi! > I have problem with my code, there is point where x = rx[31-ii] should > be true, but it's not. > So I added this for debug (variables x and rx are float and ii is integer): > > Print x - rx[31 - ii] > Print rx[31 - ii] > Print x > > Result: > 1.110223024625E-16 > 0.377913931573 > 0.37791

[Gambas-user] Problem with float value

2010-04-25 Thread Jussi Lahtinen
Hi! I have problem with my code, there is point where x = rx[31-ii] should be true, but it's not. So I added this for debug (variables x and rx are float and ii is integer): Print x - rx[31 - ii] Print rx[31 - ii] Print x Result: 1.110223024625E-16 0.377913931573 0.377913931573 So, I tried this: