Jcd.BitManipulation

A bit manipulation readability enhancement library.

Jcd.BitManipulation

Jcd.BitManipulation.Algorithms.Int16AlgorithmsExtensions

Int16AlgorithmsExtensions.GetSign(this short) Method

Returns a value indicating the sign of the number.

public static int GetSign(this short number);

Parameters

number System.Int16

The number to evaluate

Returns

System.Int32 -1 if < 0; 1 if > 0; 0 otherwise.