
Point noted, it doesn't seem to be the case for the original question, as he
is doing some square roots.
On Fri, Jun 26, 2009 at 04:00,
G'day all.
Quoting Rafael Gustavo da Cunha Pereira Pinto
:
I am reading this and still don't understand what is the question. You
should never operate two floating point numbers expecting to result zero. Period.
WARNING: Advanced material follows.
A 32-bit integer fits losslessly in the mantissa of a Double. Any of the basic integer operations which work correctly on 32-bit integers must also work correctly when that integer is stored in a Double. You are allowed to assume this.
Cheers, Andrew Bromage
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- Rafael Gustavo da Cunha Pereira Pinto Electronic Engineer, MSc.