log10

Calculates the base 10 logarithm.

double log10 (double x);

Required Header
<math.h>

Return Value

This function returns the base 10 logarithm of a double precision floating point number. If x <= 0.0 then errno is set to EDOM and the result is 0.0

Parameters

x

  The value to be converted

Mathematics

See Also    exp, log