Syntax 1 For all objects
Description
Determines the natural logarithm of a number.
Syntax
|
1 |
<span>Log</span> ( <span>n</span> ) <span></span> |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want the natural |
Return Values
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 |
<span>Log</span>(10) |
This statement returns –.693147. . . :
|
1 |
<span>Log</span>(0.5) |
Both these statements result in an error at runtime:
|
1 |
<span>Log</span>(0) |
|
1 |
<span>Log</span>(-2) |
After the following statements execute, the value
of a is 200:
|
1 |
double a, b = <span>Log</span>(200) |
|
1 |
a = Exp(b)// a = 200 |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest