Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!rti!sas!bts From: bts@sas.UUCP (Brian T. Schellenberger) Newsgroups: comp.lang.c Subject: Re: Help with function Keywords: abs(), strtod(), don't work Message-ID: <1430@sas.UUCP> Date: 8 Jan 90 18:06:07 GMT References: <3198@cbnewsj.ATT.COM> <1026@rwing.UUCP> Reply-To: bts@sas.UUCP (Brian T. Schellenberger) Distribution: na Organization: SAS Institute Inc, Cary NC Lines: 11 Aside from the fact, ast pointed out already, that strtod() is returning a decimal rather than a double, abs() returns, and expects, a decimal as well. Use fabs().* *Actually, abs() on many systems is "generic," but it isn't required to be. strtod never is. -- -- Brian, the Man from Babble-on. ...!mcnc!rti!sas!bts -- (Brian Schellenberger) "No one will ever write a song called 'Nitro Burning Funny Cars'" -- THE DEAD MILKMEN, "Nitro Burning Funny Cars"