Floating Point Arithmetic

Anton Rang rang at cs.wisc.edu
Fri Nov 9 05:24:09 AEST 1990


In article <14366 at smoke.brl.mil> gwyn at 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 at cs.wisc.edu | UW--Madison |
+---------------------------+------------------+-------------+



More information about the Comp.lang.c mailing list