
26 Feb
2006
26 Feb
'06
11:40 a.m.
Well, if you are relying on exact results from floating point arithmetic you're in trouble no matter what you do.
As long as you don't do anything irrational (exp, sin, sqrt, etc.), you should be able to get away with using Rational. Number constants with decimals are not automatically constructors for floating point numbers in Haskell; they are exact (fromRational) until you make them Doubles or some other floating point value. If you have to use Doubles for other reasons (performance/memory, interfacing with other code, etc.) this won't help you... Just my 2c. Jared. -- http://www.updike.org/~jared/ reverse ")-:"