Click or drag to resize
MathSign Method (Int16)
Returns a value indicating the sign of a 16-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static int Sign(
	short value
)

Parameters

value
Type: SystemInt16
A signed number.

Return Value

Type: 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.
See Also