VBScript Sgn Function
Complete VBScript Reference Manual
The Sgn function returns an integer indicating the sign of a specified number.
Syntax
Sgn(number)
| Parameters | Description |
|---|---|
| number | Required. A valid numeric expression.
If the number is: |
Example
Example
The example above produces the following output:
1
-1
0
Try it »
Complete VBScript Reference Manual