int intlog(double base, double x) {
return (int)(log(x) / log(base));
}
[Mathematics] log10x = log10(x) [In C++ Programming]
#include <math.h> /* log */
double param, result;
param = 10;
result = log (param);
printf ("log(%f) = %f
", param, result );
double log10(double x)