Re: Possreps and numeric types
From: David Cressey <cressey73_at_verizon.net>
Date: Tue, 27 Mar 2007 06:15:06 GMT
Message-ID: <KD2Oh.1604$Rp2.1491_at_trndny04>
Date: Tue, 27 Mar 2007 06:15:06 GMT
Message-ID: <KD2Oh.1604$Rp2.1491_at_trndny04>
"V.J. Kumar" <vjkmail_at_gmail.com> wrote in message
news:Xns98FFEB79C9D6Bvdghher_at_217.22.228.20...
> Matthias Klaey <mpky_at_hotmail.com> wrote in
> news:gqsg031cmfnr5p5fbiokksmaf8psios4hh_at_4ax.com:
>
> > I used to teach that if you calculate "2 + 2" on a computer, the
> > result would be somewhere between 3 and 5,
>
> You are kidding, right ? If not, you might want to fix your computer for
> the sake of your poor students at least !
I think you missed the irony in the original teaching. If you are working
with integers,
there is only one answer that is somewhere between 3 and 5. Everything
works. If you are working with floating point numbers, and approximations,
you can get some nasty surprises.