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

Reply via email to