Returns the sign of a number.
[Visual Basic] Overloads Public Shared Function Sign( _ ByVal value As Decimal _ ) As Integer [C#] public static int Sign( Decimal value ); [C++] public: static int Sign( Decimal value ); [JScript] public static function Sign( value : Decimal ) : int;
A number representing the sign of value:
Number | Description |
---|---|
-1 | value is negative, less than zero. |
0 | value is "unsigned", equal to zero. |
1 | value is positive, greater than zero. |
Math Class | Math Members | System Namespace | Math.Sign Overload List