Logarithmic functions
Logarithmic mathematical functions operate on numeric expressions only, and will return an error if used on any other values. See also Mathematical operators.
e()
Syntax  | 
  | 
||
Description  | 
Returns the base of the natural logarithm, e.  | 
||
Returns  | 
  | 
||
RETURN e()
The base of the natural logarithm, e, is returned.
| e() | 
|---|
  | 
Rows: 1  | 
exp()
Syntax  | 
  | 
||
Description  | 
Returns e^n, where e is the base of the natural logarithm, and n is the value of the argument expression.  | 
||
Arguments  | 
Name  | 
Type  | 
Description  | 
  | 
  | 
A value to which the base of the natural logarithm, e, will be raised.  | 
|
Returns  | 
  | 
||
  | 
  | 
RETURN exp(2)
e to the power of 2 is returned.
| exp(2) | 
|---|
  | 
Rows: 1  | 
log()
Syntax  | 
  | 
||
Description  | 
Returns the natural logarithm of a   | 
||
Arguments  | 
Name  | 
Type  | 
Description  | 
  | 
  | 
A value for which the natural logarithm will be returned.  | 
|
Returns  | 
  | 
||
  | 
  | 
If (  | 
RETURN log(27)
The natural logarithm of 27 is returned.
| log(27) | 
|---|
  | 
Rows: 1  | 
log10()
Syntax  | 
  | 
||
Description  | 
Returns the common logarithm (base 10) of a   | 
||
Arguments  | 
Name  | 
Type  | 
Description  | 
  | 
  | 
A value for which the common logarithm (base 10) will be returned.  | 
|
Returns  | 
  | 
||
  | 
  | 
If (  | 
RETURN log10(27)
The common logarithm of 27 is returned.
| log10(27) | 
|---|
  | 
Rows: 1  | 
sqrt()
Syntax  | 
  | 
||
Description  | 
Returns the square root of a   | 
||
Arguments  | 
Name  | 
Type  | 
Description  | 
  | 
  | 
The value to calculate the square root of.  | 
|
Returns  | 
  | 
||
  | 
If (  | 
RETURN sqrt(256)
The square root of 256 is returned.
| sqrt(256) | 
|---|
  | 
Rows: 1  |