A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  special characters  sybase-tech-blog


Category: ASE: Functions: Mathematical Functions

log()

The mathematical function log() returns the natural logarithm for the parameter "number".

Syntax of the Mathematical Function log()

    log(number)
    

The parameter "number" of the Mathematical Function log()

number
The parameter "number" is a placeholder for column names, variables or constants, which must be of any of these datatypes: float, real, double precision . Additionally, the parameter recognises any other datatype which can be converted into one of the required datatypes using implicit conversion .

Example for the Mathematical Function log()

    select log(30)
go
-----
3.401197

Returns 3.401197.

See also:

ASE T-SQL - Aggregate Functions,
Mathematical Functions,
abs(),
acos(),
asin(),
atan(),
atn2(),
ceiling(),
cos(),
cot(),
degrees(),
exp(),
floor(),
log10(),
pi(),
power(),
radians(),
rand(),
round(),
sign(),
sin(),
sqrt(),
tan().