> IMHO GHC's documentation should clearly warn that programmers should
> not depend on even basic stability and exactness of floating point
> computations, and only stability is provided by -fstrictfp.
GHC is no different from any other compiler for any other language in
this respect. Floating-point values are *not* the mathematical `real
numbers', and should not be treated as such. This is second-year CS
course material.
A good paper to read in this connection is:
@Article{
Goldberg91:What,
author="David Goldberg",
title="What Every Computer Scientist Should Know About Floating
Point Arithmetic",
journal="Computing Surveys",
year="1991",
volume="23",
number="1",
month=mar,
}
--KW 8-)
--
Keith Wansbrough <[EMAIL PROTECTED]>
http://www.cl.cam.ac.uk/users/kw217/
Cambridge University Computer Laboratory.