Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to deal with the error of logarithmic operation in C language?
How to deal with the error of logarithmic operation in C language?
Will this work?

Double logarithm (double x); It is based on e,

Log (10)/log (10) is enough to calculate the cardinality of 10.

The output is% f.

-

# include & ltstdio.h & gt

# include & ltmath.h & gt

Master ()

{

Double b;

b = log( 100)/log( 10);

printf("%f\n ",b);

getchar();

}

Output of 2.00000 should be enough.