log10(8)

El-Zein A A elzea at sersun0.essex.ac.uk
Mon Feb 26 05:15:10 AEST 1990


	My calculator gives me 0.9030899 for log(8),

	While the following code (which I thought would
	
	give me the above value of 0.9030899) prints 
	
	-312.770165.

	.
	.
	.
	.
	double l;
	.
	.
	l = log10(8);
	printf("%f", l);
        .
	.
	.


	Can anybody tell me why.


			thanks in advance,

			Mustapha;



More information about the Comp.lang.c mailing list