Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucbvax.ARPA Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!info-vax From: info-vax@ucbvax.ARPA Newsgroups: fa.info-vax Subject: Re: speed of single/double precision calculations Message-ID: <3519@ucbvax.ARPA> Date: Wed, 28-Nov-84 04:21:10 EST Article-I.D.: ucbvax.3519 Posted: Wed Nov 28 04:21:10 1984 Date-Received: Thu, 29-Nov-84 02:03:23 EST Sender: daemon@ucbvax.ARPA Organization: University of California at Berkeley Lines: 13 From: decvax!mcnc!rti-sel!trt@BERKELEY Uhm, what computer/language were you using to time your code? The Gould C/f77 compilers use single-precision arithmetic on single-precision variables. Most other compilers to all f.p. arithmetic in double which means there is alot of float->double...arith...double->float conversion which makes double precision variables look attractive! The original definition of C was that all f.p. arithmetic be in double precision, though the proposed standard permits the Gould interpretation. Tom Truscott