LOG10 function [Numeric]

Returns the base 10 logarithm of a number.

Syntax
LOG10( numeric-expression )
Parameters
  • numeric-expression   The number.

Returns

This function converts its argument to DOUBLE, and performs the computation in double-precision floating point. If the parameter is NULL, the result is NULL.

Remarks

The argument is an expression that returns the value of any built-in numeric data type.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the base 10 logarithm for 50.

SELECT LOG10( 50 );