[Haskell-cafe] Re: Is logBase right?

Bryan O'Sullivan bos at serpentine.com
Tue Aug 25 12:23:03 EDT 2009


2009/8/22 Roberto López <plastermoso at hotmail.com>

>
> You get the accuracy value in Perl, but there is the same problem in
> Python.
> It's a bit discouraging.
>

You don't get an accurate answer with Perl. It just lies to you to keep you
happy in your ignorance.

$ perl -e 'printf "%.22f\n", log(1000)/log(10);'
2.9999999999999995559108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090825/b20fb587/attachment.html


More information about the Haskell-Cafe mailing list