Mono Class Library: System.Math Overview | Members

System.Math.Sign Method

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

[System.CLSCompliant(false)]
public static int Sign (sbyte value)

Parameters

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

Returns

A int indicating the sign of value.

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

Remarks

This method is not CLS-compliant. For a CLS-compliant alternative, use Math.Sign(sbyte)(short). [Edit]

Requirements

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