Product Documentation

SQL Reference Guide

Previous Topic

Next Topic

LOG SQL Scalar Function

Syntax

LOG ( expression )

Description

The scalar function LOG returns the natural logarithm of expression.

Example

SELECT LOG( 100 ) 'Natural Logarithm of 100' FROM

admin.syscalctable ;

NATURAL LOGARITH

----------------

4.605170185988092

1 record selected

Details

Expression must evaluate to an approximate numeric data type.

Note: ODBC compatible

TOCIndex