Abs PowerScript function
Description
Calculates the absolute value of a number.
Syntax
|
1 |
<span>Abs</span> ( <span>n </span>) |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want the absolute |
Return Values
The datatype of n. Returns the absolute
value of n. If n is null, Abs returns null.
Examples
All these statements set num to
4:
|
1 |
integer i, num<br> <br>i = 4<br>num = <span>Abs</span>(i)<br>num = <span>Abs</span>(4)<br>num = <span>Abs</span>(+4)<br>num = <span>Abs</span>(-4) |
This statement returns 4.2:
|
1 |
<span>Abs</span>(-4.2) |
See Also
-
Abs method
for DataWindows in the DataWindow Reference or
online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest