Path: utzoo!attcan!uunet!husc6!linus!gatech!bloom-beacon!athena.mit.edu!tada From: tada@athena.mit.edu (Michael Zehr) Newsgroups: comp.lang.c Subject: Re: should double have better precision or greater range? Summary: really about short vs. int for speed Message-ID: <6978@bloom-beacon.MIT.EDU> Date: 7 Sep 88 04:15:30 GMT References: <8809061831.AA29128@ucbvax.Berkeley.EDU> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: tada@athena.mit.edu (Michael Zehr) Organization: Massachusetts Institute of Technology Lines: 15 GRRR! lost the article reference ... sorry guys. > [comments about doubles deleted] >One last thing: Would an expression be evaluated more quickly if the RHS >had variables of type short or type int? > Michael Steiner This is extrememly machine dependant. Usually, if you declare something as type "int", the compiler will use the "natural" data type for the machine, which will usually be fastest. The only way to tell for sure would be to time it in various ways, on each machine you plan to use the code on. If you don't want to go to all that work, you're probably better of just using "int". -michael j zehr