Mono Class Library: System.Math Overview | Members

System.Math.Sign Method

Returns a value indicating the sign of the specified float. [Edit]

public static int Sign (float value)

Parameters

value
A float whose sign is to be determined. [Edit]

Returns

A int indicating the sign of value.

NumberDescription
-1value < 0.
0value == 0.
1value > 0.
[Edit]

Exceptions

TypeReason
ArithmeticExceptionvalue is equal to float.NaN. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0