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;