Click or drag to resize

QuasiRandomNumberGeneratorBitArrayToInt Method

Returns an int whose binary representation is given by a. For example, if a = 1,1,1, this function will return 7.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
protected static int BitArrayToInt(
	BitArray a
)

Parameters

a  BitArray
A bit array.

Return Value

Int32
An integer whose binary representation is given by a.
See Also