Computes the logarithm (base 10) of x.
#include <math.h> double log10 ( double x);
(IN) Specifies the argument for which the logarithm is to be computed.
If successful, returns the logarithm (base 10) of the argument. When an error has occurred, errno is set.
A domain error occurs if the argument is negative. A range error occurs if the argument is zero.