log10() and log10f()

Syntax
  #include <math.h>

  
  double log10(double x);

  
  float  log10f(float x);

  
Description

log10() computes the decadic logarithm (the logarithm to base 10) of x.

Return

log10(x), if x is greater than zero. If x is smaller then zero, NAN is returned; if it is equal to zero, log10() returns negative infinity. In both cases, errno is set to EDOM.

Seealso

exp() and expf() and

log10() and log10f()