[Haskell-cafe] Re: Is logBase right?

Steve stevech1097 at yahoo.com.au
Sun Aug 23 09:51:03 EDT 2009


On Sun, 2009-08-23 at 17:36 +0400, Bulat Ziganshin wrote:
> Hello Steve,
> 
> Sunday, August 23, 2009, 5:27:48 PM, you wrote:
> 
> ghci>> roundN 697.04157958254996 10
> > 697.0415795826
> 
> afair, double has 13 decimal digits precision, so your
> 697.04157958254996 represented by another value. you just looking for
> miracles
> 
> 
I think its 16 or 17 (significant not decimal digits). Its a miracle
that Python achieves! But Haskell does not. Python uses doubles too, and
for certain operations it uses arbitrary precision floating point (I
think).

Steve



More information about the Haskell-Cafe mailing list