Path: utzoo!mnetor!tmsoft!dptcdc!jarvis.csri.toronto.edu!dgp.toronto.edu!ckchee From: ckchee@dgp.toronto.edu (Chuan Chee) Newsgroups: comp.sys.sgi Subject: float vs double Keywords: float double Message-ID: <8904281948.AA28223@cartier.dgp.toronto.edu> Date: 28 Apr 89 19:48:38 GMT Distribution: na Organization: University of Toronto, CSRI Lines: 24 I have been using "double" almost extensively on a Personal Iris 4D/20. I am curious about the advantages/performance of using "float". Yes I realize that "float" has less precision but let's assume that I only need float precision. The assumptions I have about float are: (1) The floating point accelerator computes float expressions faster than double expressions. (2) float takes half the amount of storage. I am posting this to confirm my assumptions and maybe get some statistics. Are there other advantages/performance considerations? How fast/slow is converting between float and double? One other thing - I am compiling with: cc -g -signed -Zg ...Chuan Chee CDNNET: ckchee@dgp.utoronto.ca CSNET: ckchee@dgp.toronto.edu BITNET: ckchee@dgp.utoronto.bitnet ARPA: ckchee%dgp.toronto.edu@relay.cs.net UUCP: ckchee@dgp.uucp