Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site hadron.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!lll-crg!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: C Floating point arithmetic Message-ID: <95@hadron.UUCP> Date: Wed, 27-Nov-85 02:55:05 EST Article-I.D.: hadron.95 Posted: Wed Nov 27 02:55:05 1985 Date-Received: Fri, 29-Nov-85 21:20:00 EST References: <706@lasspvax.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 14 Keywords: ANSI, float, double Summary: ANSI floats != doubles necessarily In article <706@lasspvax.UUCP> garry%geology@cu-arpa.cornell.edu.arpa writes: >Pet peeve: >In an inauspicious moment, K&R specified "All floating-point arithmetic >in C is done in double precision" (pg 41). This is unsaid in ANSI C, as mentioned in the middle of an earlier (long!) article. Floats may be themselves even in the midst of arithmetic ops and function passing. May cause problems in loosely written programs. "Say what you mean ... is the whole of the law." -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}