[Gambas-user] numerical error in Gambas??

Benoit Minisini gambas at ...1...
Wed Mar 31 23:56:01 CEST 2004


On Monday 29 March 2004 14:27, jholm at ...381... wrote:
> Hi everyone,
>
> I have a rather peculiar problem when I compile the following in Gambas:
>
> PUBLIC SUB Main()
>    DIM i AS Float
>
>    FOR i = 1.66 TO 1.70 STEP 0.001
>      PRINT i*(1.0/i)
>    NEXT
>
> END
>
>
> I get "0.1" values for some of the i values, which is obviously wrong.

The bug is fixed, finally :-)

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list