LogTen PowerScript function
Description
Determines the base 10 logarithm of a number.
Syntax
|
1 |
<span>LogTen</span> ( <span>n</span> <span></span>) |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want the base |
Usage
Double. Returns the base 10 logarithm
of n. An execution error occurs if n is negative.
If n is null, LogTen returns null.
Inverse of LogTen
The expression 10^n is
the inverse of LogTen(n).
To obtain the value of n in the equation r = LogTen(n),
use n = 10^r.
Examples
This statement returns 1:
|
1 |
<span>LogTen</span>(10) |
The following statements both return 0:
|
1 |
<span>LogTen</span>(1) |
|
1 |
|
1 |
<span>LogTen</span>(0) |
This statement results in an execution error:
|
1 |
<span>LogTen</span>( <span>–</span> 2) |
After the following statements execute, the value
of a is 200:
|
1 |
double a, b = <span>LogTen</span>(200) |
|
1 |
a = 10^b// a = 200 |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest