Xref: news2.mv.net comp.lang.c:54358 comp.lang.c++:69847 comp.os.msdos.djgpp:648 gnu.g++.help:4420 gnu.gcc.help:5633 From: russell AT news DOT mdli DOT com (Russell Blackadar) Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp Subject: Re: float != float and floats as return types Followup-To: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp Date: 30 Jan 1996 06:36:00 GMT Organization: HoloNet National Internet Access System: 510-704-1058/modem Lines: 15 Message-ID: <4eke8g$64m@colossus.holonet.net> References: <4ej9lb$mpc AT fu-berlin DOT de> <310D4D9C DOT 7DAB2E1B AT alcyone DOT com> NNTP-Posting-Host: jubal.mdli.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Erik Max Francis (max AT alcyone DOT com) wrote: .... : I don't understand what you find surprising. Both the second and third column : have the same computation, except that in one of the x^2 function is inlined : and in the other it is called through a function. In either case, you get : exactly the same value. What is the objection? What is surprising is that all the columns are not zero! The original poster was offering some speculations as to how that might have happened, but as you say (and I think he'd agree) it doesn't wash. I ran his posted code and got all zeroes. Either there's a *serious* problem with his compiler, or the posted code is not the same as what he compiled. Either way, he should try to pin down the cause of the trouble with more print statements, etc... -- Russell Blackadar, russell AT mdli DOT com