BigIntegerStatic: SetBit

SetBit

Sets the specified bit of the BigInteger instance to 1.



 Public Function SetBit(
	  ByVal Value As BigInteger,
	  ByVal Bit As Long ) As BigInteger

Parameters

Value
[ByVal] BigInteger. The BigInteger value to set the bit on.
Bit
[ByVal] Long. The bit to be set to 1.

Return Values

BigInteger -  A new BigInteger value with the bit set to 1.

Remarks

If the bit specified is larger than the current instance of the BigInteger value, then the new value will be extended to include the bit being set.

Values of Nothing will be treated as zero.

See Also

Project CorLib Overview

Class BigIntegerStatic Overview