Previous Topic Next topic Print topic


LOG Function

Purpose

Returns the natural logarithm of an arithmetic expression.

Syntax

LOG(x)

Parameters

x is a floating-point value greater than zero.

Description

The LOG function returns the natural logarithm of x. Note that LOG(x) is the inverse of EXP(x), that is, LOG(EXP(x)) = x = EXP(LOG(x)).

The result has the same data type as x.

Examples

LOG(7.389056)    /* returns 2 */

Restrictions

An LOG 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.

Previous Topic Next topic Print topic