System Namespace Math Class
Returns a value indicating the sign of a 32-bit signed integer.
[ VB ]
Overloads Public Shared Function Sign ( _
ByVal value As Integer _
) As Integer
[ C# ]
public static int Sign (
int value
);
[ C++ ]
public: static int Sign (
int value
);
[ JScript ]
public static function Sign (
value : int
) : int;
- value
- A signed number.
A number indicating the sign of value.
Number |
Description |
-1 |
value is less than zero. |
0 |
value is equal to zero. |
1 |
value is greater than zero. |
Math Members Math.Sign Overload List