Easy Tutorial
❮ Func Getlocale Func Isobject ❯

VBScript Sgn Function



The Sgn function returns an integer that indicates the sign of a specified number.

Syntax

Parameter Description
number Required. A valid numeric expression. If the number is: >0 - Sgn returns 1<br> =0 - Sgn returns 0<br> <0 - Sgn returns -1

Example

Example

The output of the above example:


❮ Func Getlocale Func Isobject ❯