Point noted, it doesn't seem to be the case for the original question, as he is doing some square roots.
G'day all.WARNING: Advanced material follows.
Quoting Rafael Gustavo da Cunha Pereira Pinto <RafaelGCPP.Linux@gmail.com>:
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.
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