[Gambas-user] Complex float precision

Benoît Minisini gambas at ...1...
Mon Jul 9 02:47:40 CEST 2012


Le 09/07/2012 02:42, Adrien Prokopowicz a écrit :
> Now that I finally built the gsl component, I found this :
>
> Print (1i * Pi()).Exp()
>
> ... shows -1+1,2246467991474E-16i instead of -1.

I'm not surprised... Floating point errors...

-- 
Benoît Minisini






More information about the User mailing list