log10
Computes the logarithm (base 10) of x
#include <math.h>
double log10 (
double x);
The log10 function returns the logarithm (base 10) of the argument. When an error has occurred, errno is set.
The log10 function computes the logarithm (base 10) of x. A domain error occurs if the argument is negative. A range error occurs if the argument is zero.
#include <math.h>
#include <stdio.h>
main()
{
printf ("%f\n", log10 (.5) );
}
produces the following:
-0.301030