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!cbosgd!ucbvax!info-vax From: info-vax@ucbvax.ARPA Newsgroups: fa.info-vax Subject: Re: speed of single/double precision calculations Message-ID: <3474@ucbvax.ARPA> Date: Mon, 26-Nov-84 11:31:20 EST Article-I.D.: ucbvax.3474 Posted: Mon Nov 26 11:31:20 1984 Date-Received: Tue, 27-Nov-84 04:15:46 EST Sender: daemon@ucbvax.ARPA Organization: University of California at Berkeley Lines: 15 From: Mike Minnich Bill, If you look at the compiler output, you'll see that floats always are converted to doubles before any computation is done. What's more, after the computation, the doubles are converted back to float! As a matter of fact, my office mate found that declaring everything double resulted in a significant decrease in run time, esp. when doing heavy duty floating pt computations. Do everything in double, not float. mike