#include <math.h>
double log10(double x);
float log10f(float x);
log10() computes the decadic logarithm (the logarithm to base 10) of x.
log10(x), if x is greater than zero. If x is smaller then zero, log10() returns NAN; if x is equal to zero, log10() returns negative infinity. In both cases, log10() sets errno to EDOM.