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, log10() returns NAN; if x is equal to zero, log10() returns negative infinity. In both cases, log10() sets errno to EDOM.

See also

exp() and expf()

log10() and log10f()