BigIntegerStatic: SetBit

SetBit

Sets the specified bit of the BigInteger instance to 1.



 Public Function SetBit(
	  ByVal x As BigInteger,
	  ByVal bit As Long ) As BigInteger

Parameters

x
[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 VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods SeedRnd ShiftLeft