asp.net.ph

Math.Sign Method ( Double )

System Namespace   Math Class


Returns a value indicating the sign of a double-precision floating-point number.

[ VB ]
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
A signed number.

Return Value

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.

Exceptions


Exception Type Condition
ArithmeticException value is equal to NaN.

See Also

Math Members   Math.Sign Overload List Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note