Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » SQL functions (E-O)

 

LOG function [Numeric]

Returns the natural logarithm of a number.

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

Returns

This function converts its argument to DOUBLE, performs the computation in double-precision floating point, and returns a DOUBLE as the result. 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 natural logarithm of 50.

SELECT LOG( 50 );