# VBScript Sgn Function
* * Complete VBScript Reference Manual](#)
* * *
The Sgn function returns an integer that indicates the sign of a specified number.
### Syntax
Sgn(number)
| Parameter | Description |
| :--- | :--- |
| number | Required. A valid numeric expression. If the number is: * >0 - Sgn returns 1 * =0 - Sgn returns 0 * <0 - Sgn returns -1 |
## Example
## Example
document.write(Sgn(15) & "
")
document.write(Sgn(-5.67) & "
")
document.write(Sgn(0))
Output of the example above:
1
-1
0
[Try it yourself Β»](#)
* * Complete VBScript Reference Manual](#)
Func Sgn
π
2026-06-13 | π C#
YouTip