log10(8)

Andrew P. Mullhaupt amull at Morgan.COM
Tue Feb 27 04:48:30 AEST 1990


In article <16022 at haddock.ima.isc.com>, karl at haddock.ima.isc.com (Karl Heuer) writes:
> In article <3244 at servax0.essex.ac.uk> elzea at 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



More information about the Comp.lang.c mailing list