Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns a value indicating the sign of a double-precision floating-point number.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function Sign ( _
value As Double _
) As Integer
public static int Sign(
double value
)
public:
static int Sign(
double value
)
static member Sign :
value:float -> int
public static function Sign(
value : double
) : int
Parameters
- value
Type: System. . :: . .Double
A signed number.
Return Value
Type: System. . :: . .Int32
A number that indicates the sign of value, as shown in the following table.
Return value |
Meaning |
---|---|
-1 |
value is less than zero. |
0 |
value is equal to zero. |
1 |
value is greater than zero. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.