Path: utzoo!attcan!uunet!mstan!amull From: amull@Morgan.COM (Andrew P. Mullhaupt) Newsgroups: comp.lang.c Subject: Re: log10(8) Summary: A little hint Message-ID: <756@s5.Morgan.COM> Date: 26 Feb 90 17:48:30 GMT References: <3244@servax0.essex.ac.uk> <16022@haddock.ima.isc.com> Organization: Morgan Stanley & Co. NY, NY Lines: 21 In article <16022@haddock.ima.isc.com>, karl@haddock.ima.isc.com (Karl Heuer) writes: > In article <3244@servax0.essex.ac.uk> elzea@sersun0.essex.ac.uk (El-Zein A A) writes: > >My calculator gives me 0.9030899 for log(8), While the [elided] code prints > >-312.770165. Can anybody tell me why. > > Yes. The program `lint' can tell you why. lint might not tell him about the tragedy unless he uses lint filename.c -lm as opposed to lint filename.c which will not necessarily complain. You have to put lint in the picture about linking or this particular error could easily be missed. Later, Andrew Mullhaupt