[Haskell-cafe] Newbie: Haskell Sine Oddities

Neil Mitchell ndmitchell at gmail.com
Sat Apr 29 14:10:22 EDT 2006


> 1.22460635382238e-16  --WRONG!
Thats just another way of writing:
0.000000000000000122460635382238

Which you can consider as 0 +- error

Floating point numbers are not exact, the value of pi is not exact
either, and I guess that between them they are giving you errors.

Thanks

Neil


More information about the Haskell-Cafe mailing list