Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lasspvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!lasspvax!garry From: garry@lasspvax.UUCP (Garry Wiegand) Newsgroups: net.lang.c Subject: Re: C Floating point arithmetic Message-ID: <706@lasspvax.UUCP> Date: Thu, 21-Nov-85 14:45:58 EST Article-I.D.: lasspvax.706 Posted: Thu Nov 21 14:45:58 1985 Date-Received: Sun, 24-Nov-85 04:38:10 EST Reply-To: garry%geology@cu-arpa.cornell.edu.arpa Distribution: net Organization: Cornell Engineering && Flying Moose Graphics Lines: 20 Pet peeve: In an inauspicious moment, K&R specified "All floating-point arithmetic in C is done in double precision" (pg 41). Two effects: 1) floats, as opposed to doubles, are costly and useless (except when memory space is critical), and 2) I have to advise people with CPU-intense problems not to use C. Comments? Does everybody agree? garry wiegand garry%geology@cu-arpa.cs.cornell.edu (I know what my compiler does, but are char->int and short->int required in the same way? K&R seems fuzzy to me...)