Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!yale!think!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: log10(8) Message-ID: <16022@haddock.ima.isc.com> Date: 26 Feb 90 03:25:52 GMT References: <3244@servax0.essex.ac.uk> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 10 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. If you don't have lint, or the equivalent functionality via compiler options, then your vendor sold you only half a C compiler. Karl W. Z. Heuer (karl@ima.ima.isc.com or harvard!ima!karl), The Walking Lint