Table of Contents

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

sizeInBytes int

The size in bytes.

Returns

uint

NormalizeInt(int)

Normalizes a signed integer to an unsigned integer by shifting the range.

public static uint NormalizeInt(int inputValue)

Parameters

inputValue int

The signed integer value to normalize.

Returns

uint

NormalizeLong(long)

Normalizes a signed long to an unsigned long by shifting the range.

public static ulong NormalizeLong(long inputValue)

Parameters

inputValue long

The signed long value to normalize.

Returns

ulong

NormalizeShort(short)

Normalizes a signed short to an unsigned short by shifting the range.

public static ushort NormalizeShort(short inputValue)

Parameters

inputValue short

The signed short value to normalize.

Returns

ushort