|
|
| Sgn | ||
| Result = Sgn(Value#) | ||
| Parameters: Value# = The value you wish to query |
||
| Returns: Result = The value representing the sign (-1 =neg, 0= zero, 1= positive) |
||
The Sgn functions returns number value representing the sign of the queried value. FACTS: * Sgn returns a -1 for negative values, 0 for zero and 1 for positive values. Mini Tutorial:
This example would output.
|
| Related Info: | Comparisons | EVEN | Neg | ODD | Operators : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |