Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!seismo!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: MSC C arithmetic Message-ID: <7989@mimsy.UUCP> Date: Sun, 16-Aug-87 17:05:32 EDT Article-I.D.: mimsy.7989 Posted: Sun Aug 16 17:05:32 1987 Date-Received: Sun, 16-Aug-87 23:15:56 EDT References: <8792@brl-adm.ARPA> <7976@mimsy.UUCP> <7178@alice.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 >In article <7976@mimsy.UUCP> I wrote: >> The second result is not so defensible; the 16.0 should modify the >> entire operation so that it is done in double. In article <7178@alice.UUCP> ark@alice.UUCP writes: >Nope. This example should be parsed as > > total_bits = (((repeat_cnt * units) * blksiz) * 16.0); ark is right (as usual); I was at home, working without a K&R. I had originally hedged on this, then took out the hedging. Sorry about that. (And this posting was delayed two days by hardware problems ... sigh.) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: seismo!mimsy!chris