[Haskell-beginners] High precision doubles

Rafael Gustavo da Cunha Pereira Pinto RafaelGCPP.Linux at gmail.com
Fri Jun 26 06:52:03 EDT 2009


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, <ajb at spamcop.net> wrote:

> G'day all.
>
> Quoting Rafael Gustavo da Cunha Pereira Pinto <RafaelGCPP.Linux at 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.
>>
>
> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
Rafael Gustavo da Cunha Pereira Pinto
Electronic Engineer, MSc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20090626/7ab78cc4/attachment.html


More information about the Beginners mailing list