LOG10 Function

Purpose

Returns the logarithm of an arithmetic expression to the base 10.

Syntax

LOG10(x)

Parameters

x is a floating-point value greater than zero.

Description

The LOG10 function returns the logarithm of x to the base 10. Note that LOG10(x) is the inverse of 10**x, that is, 10**LOG10(x) = x = LOG10(10**x).

The result has the same data type as x.

Examples

LOG10(100.0)   /* returns 2 */

Restrictions

A LOG10 operation on floating-point decimal data is actually performed using the floating-point binary operation. Thus, the range of the operands and the result of the operation are limited to the ranges for floating-point binary numbers.