6.1.2.10.1.8 Sgn

Function Declaration

 Function Sgn(Number As Variant) As Variant 

Parameter

Description

Number

Double containing any valid numeric expression.

Runtime Semantics.

§ Returns an Integer indicating the sign of a number, according to the following table:

If number is

Sgn returns

Greater than zero

1

Equal to zero

0

Less than zero

-1

§ The sign of the number argument determines the return value of the Sgn function.