Oracle 5.0 Reference Manual page 930

Table of Contents

Advertisement

-> 180
mysql>
SELECT DEGREES(PI() / 2);
-> 90
[910]
EXP(X)
Returns the value of e (the base of natural logarithms) raised to the power of X. The inverse of this
function is
[910]
LOG()
mysql>
SELECT EXP(2);
-> 7.3890560989307
mysql>
SELECT EXP(-2);
-> 0.13533528323661
mysql>
SELECT EXP(0);
-> 1
[910]
FLOOR(X)
Returns the largest integer value not greater than X.
mysql>
SELECT FLOOR(1.23);
-> 1
mysql>
SELECT FLOOR(-1.23);
-> -2
For exact-value numeric arguments, the return value has an exact-value numeric type. For string or
floating-point arguments, the return value has a floating-point type.
[889]
FORMAT(X,D)
Formats the number
the result as a string. For details, see
[889]
HEX(N_or_S)
This function can be used to obtain a hexadecimal representation of a decimal number or a
string; the manner in which it does so varies according to the argument's type. See this function's
description in
Section 12.5, "String
[910]
LN(X)
Returns the natural logarithm of X; that is, the base-e logarithm of X. If
then
is returned.
NULL
mysql>
SELECT LN(2);
-> 0.69314718055995
mysql>
SELECT LN(-2);
-> NULL
This function is synonymous with
function.
[910],
LOG(X)
LOG(B,X)
If called with one parameter, this function returns the natural logarithm of X. If
to 0, then
is returned.
NULL
The inverse of this function (when called with a single argument) is the
mysql>
SELECT LOG(2);
-> 0.69314718055995
mysql>
SELECT LOG(-2);
-> NULL
If called with two parameters, this function returns the logarithm of
equal to 0, or if
is less than or equal to 1, then
B
Mathematical Functions
(using a single argument only) or
to a format like '#,###,###.##', rounded to
X
Section 12.5, "String
Functions", for details.
[910]. The inverse of this function is the
LOG(X)
[910]
910
[910].
LN()
D
Functions".
X
to the base B. If
X
is returned.
NULL
decimal places, and returns
is less than or equal to 0,
[910]
EXP()
is less than or equal
X
[910]
function.
EXP()
is less than or
X

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents