log10

Computes the logarithm (base 10) of x.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  double log10 (
     double   x);
  

Parameters

x

(IN) Specifies the argument for which the logarithm is to be computed.

Return Values

If successful, returns the logarithm (base 10) of the argument. When an error has occurred, errno is set.

Remarks

A domain error occurs if the argument is negative. A range error occurs if the argument is zero.

See Also