Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!msuinfo!rang From: rang@cs.wisc.edu (Anton Rang) Newsgroups: comp.lang.c Subject: Re: Floating Point Arithmetic Summary: Garbage is precision-independent :-) Message-ID: Date: 8 Nov 90 18:24:09 GMT References: <27095.9010261638@olympus.cs.hull.ac.uk> <14366@smoke.brl.mil> Sender: news@msuinfo.cl.msu.edu Organization: UW-Madison CS department Lines: 10 In-Reply-To: gwyn@smoke.brl.mil's message of 7 Nov 90 09:08:43 GMT In article <14366@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >The real reason for avoiding floats is that unless you already know all >about this stuff, your computations may produce garbage due to the lack >of precision attained using single precision. Of course, it's just as easy to write code which will give you double-precision garbage as it is to get single-precision garbage. (Not a reason not to use 'double' anyway, of course.) Anton +---------------------------+------------------+-------------+ | Anton Rang (grad student) | rang@cs.wisc.edu | UW--Madison | +---------------------------+------------------+-------------+