Help with function
Brian T. Schellenberger
bts at sas.UUCP
Tue Jan 9 05:06:07 AEST 1990
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"
More information about the Comp.lang.c
mailing list