log10()

Returns the base 10 logarithm of a double value.

Syntax

Numeric log10()

Usage

Special cases:

  • If the value is NaN or less than zero, then the result is NaN.
  • If the value is positive infinity, then the result is positive infinity.
  • If the value is positive zero or negative zero, then the result is negative infinity.
  • If the value is equal to 10n for integer n, then the result is n.

The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic.