Jcd.BitManipulation

A bit manipulation readability enhancement library.

Jcd.BitManipulation

Jcd.BitManipulation.Algorithms.UInt16AlgorithmsExtensions

UInt16AlgorithmsExtensions.GetSign(this ushort) Method

Returns a value indicating the sign of the number.

public static int GetSign(this ushort number);

Parameters

number System.UInt16

The number to evaluate

Returns

System.Int32 1 if > 0; 0 otherwise.