[Gambas-user] could it be a BUG?

tetsuo tetsuo at ...756...
Mon Jan 2 19:59:22 CET 2006


tetsuo wrote:
> hi Benoit,
> i met this problem with aritmetical operations with gambas 1.9.23 and 
> OLD releases...
> 
> 
> <CODE>
> 
> DIM tempBUG AS Float
> 
>   tempBUG = 200 * 0.07
>   tempBUG = tempBUG - 14
>   PRINT tempBUG
> 
> </CODE>
> 
> print-result on the gambas console is '1,7763568394E-15' , but it would 
>  be '0'
> 
> 

i tried :
200 * 0.07 - 14
in the xcalc application, and there is the same problem.... 1,776356e-15

i tried also in a minimal c printf call:
printf("%'.18f", (200 * 0.07) - 14)
  and there is the same problem... 0.000000000000001776

why?????

... i don't know where is the problem





More information about the User mailing list