The log10 function

Name

log10 -- 

Synopsis

#include <math.h>

double log10 (double x );

Description

The log10 function computes the base-ten logarithm of x. A domain error occurs if the argument is negative. A range error may occur if the argument is zero.

Returns

The log10 function returns the base-ten logarithm.

Implementation Notes

The log10 function is computed by log10 (e) * log (x).
If the argument is zero, then errno is set to ERANGE, and -HUGE_VAL is returned.
If the argument < zero, then errno is set to EDOM, and -HUGE_VAL is returned.