NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Math.Sign (Double)

Returns the sign of a number.

[Visual Basic]
Overloads Public Shared Function Sign( _
   ByVal value As Double _
) As Integer
[C#]
public static int Sign(
   double value
);
[C++]
public: static int Sign(
   double value
);
[JScript]
public static function Sign(
   value : double
) : int;

Parameters

value
The number from which to retrieve the sign.

Return Value

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.

See Also

Math Class | Math Members | System Namespace | Math.Sign Overload List