Sign PowerScript function
Description
Reports whether a number is negative, zero, or positive.
Syntax
|
1 |
<span>Sign</span> ( <span>n</span> ) |
|
Argument |
Description |
|---|---|
|
n |
The number for which you want to find |
Return Values
Integer. Returns a number (-1, 0, or
1) indicating the sign of n. If n is null, Sign returns null.
Examples
This statement returns 1 (the number is positive):
|
1 |
<span>Sign</span>(5) |
This statement returns 0 (zero has no sign):
|
1 |
<span>Sign</span>(0) |
This statement returns -1 (the number is negative):
|
1 |
<span>Sign</span>(-5) |
See Also
-
Sign method
for DataWindows in the DataWindow Reference or online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest