Ian.Stark about: > > > > Prelude> 1.0 - 0.8 - 0.2 > > > -1.49012e-08 > ... I don't quote > this example because it is a fault with single vs double precision, > a mistake in Hugs, or indeed a problem at all. It's just > interesting to see how our perception of real numbers can clash with > the (entirely sensible) mechanics of floating-point arithmetic. Still, I prefer to get -5.551115123125783e-17 than 1.5e-08, especially if the "standard" specification says that the system is using doubles. Jerzy Karczmarczuk
- rounding in haskell Julian Assange
- Re: rounding in haskell Lennart Augustsson
- Re: rounding in haskell Julian Assange
- Re: rounding in haskell George Russell
- Re: rounding in haskell Lennart Augustsson
- Re: rounding in haskell Ian . Stark
- Re: rounding in haskell Jerzy Karczmarczuk
- Re: rounding in haskell George Russell
- Re: rounding in haskell Ian . Stark
- Re: rounding in hask... Jerzy Karczmarczuk
- Re: rounding in hask... Ronny Wichers Schreur
- Re: rounding in haskell Julian Assange
- Re: rounding in haskell George Russell
- Re: rounding in haskell George Russell
- Re: rounding in haskell John Hughes
- RE: rounding in haskell Frank A. Christoph
- RE: rounding in haskell Karlsson Kent - keka
- RE: rounding in haskell Karlsson Kent - keka
- Re: rounding in haskell David Lester
- RE: rounding in haskell Julian Seward (Intl Vendor)