BigInteger.ToUInt32Array Method

Converts a BigInteger value to an array of UInt32 words.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public uint[] ToUInt32Array()

Return Value

UInt32[]
The BigInteger value converted to a uint array.

Remarks

The array contains a two's complement representation of the value in little-endian order.

The first (leading) bit of the last byte in the array indicates the sign. A value of 0 indicates that the number is positive. A value of 1 indicates that the number is negative. An extra word of all 0's (1's) may be added as the last element of the array to make sure that a positive (negative) value is interpreted correctly.

See Also