Class NormalizeNumbers
- Namespace
- SunamoNumbers
- Assembly
- SunamoNumbers.dll
Provides methods for normalizing signed numeric types to their unsigned equivalents.
public static class NormalizeNumbers
- Inheritance
-
NormalizeNumbers
- Inherited Members
Methods
BytesToMegabytes(int)
Converts a byte count to megabytes using normalization.
public static uint BytesToMegabytes(int sizeInBytes)
Parameters
sizeInBytesintThe size in bytes.
Returns
NormalizeInt(int)
Normalizes a signed integer to an unsigned integer by shifting the range.
public static uint NormalizeInt(int inputValue)
Parameters
inputValueintThe signed integer value to normalize.
Returns
NormalizeLong(long)
Normalizes a signed long to an unsigned long by shifting the range.
public static ulong NormalizeLong(long inputValue)
Parameters
inputValuelongThe signed long value to normalize.
Returns
NormalizeShort(short)
Normalizes a signed short to an unsigned short by shifting the range.
public static ushort NormalizeShort(short inputValue)
Parameters
inputValueshortThe signed short value to normalize.