Mathematical functions - logarithmic
Logarithmic mathematical functions operate on numeric expressions only, and will return an error if used on any other values. See also Mathematical operators.
e()
e()
returns the base of the natural logarithm, e
.
Syntax:
e()
Returns:
|
RETURN e()
The base of the natural logarithm, e
, is returned.
e() |
---|
|
Rows: 1 |
exp()
exp()
returns en
, where e
is the base of the natural logarithm, and n
is the value of the argument expression.
Syntax:
e(expression)
Returns:
|
Arguments:
Name | Description |
---|---|
|
A numeric expression. |
Considerations:
|
|
RETURN exp(2)
e
to the power of 2
is returned.
exp(2) |
---|
|
Rows: 1 |
log()
log()
returns the natural logarithm of a number.
Syntax:
log(expression)
Returns:
|
Arguments:
Name | Description |
---|---|
|
A numeric expression. |
Considerations:
|
|
If ( |
RETURN log(27)
The natural logarithm of 27
is returned.
log(27) |
---|
|
Rows: 1 |
log10()
log10()
returns the common logarithm (base 10) of a number.
Syntax:
log10(expression)
Returns:
|
Arguments:
Name | Description |
---|---|
|
A numeric expression. |
Considerations:
|
|
If ( |
RETURN log10(27)
The common logarithm of 27
is returned.
log10(27) |
---|
|
Rows: 1 |
sqrt()
sqrt()
returns the square root of a number.
Syntax:
sqrt(expression)
Returns:
|
Arguments:
Name | Description |
---|---|
|
A numeric expression. |
Considerations:
|
If ( |
RETURN sqrt(256)
The square root of 256
is returned.
sqrt(256) |
---|
|
Rows: 1 |
Was this page helpful?