Syntax 1: For all objects
Description
Determines the natural logarithm of a number.
Syntax
|
1 |
Log ( n ) |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want the natural logarithm |
Return value
Double.
Returns the natural logarithm of n. An execution error occurs if n
is negative or zero. If n is null, Log returns null.
Inverse of Log
The inverse of the Log function is the Exp function.
Examples
This statement returns 2.302585092:
|
1 |
Log(10) |
This statement returns -.693147. . .:
|
1 |
Log(0.5) |
Both these statements result in an error at runtime:
|
1 2 |
Log(0) Log(-2) |
After the following statements execute, the value of a is
200:
|
1 2 |
double a, b = Log(200) a = Exp(b)// a = 200 |
See also
Log method for DataWindows in the section called “Log” in DataWindow Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest