BigIntegerStatic: FlipBit

FlipBit

Flips the specified bit, toggling between True and False.



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

Parameters

Value
[ByVal] BigInteger. The BigInteger value to flip the bit on.
Bit
[ByVal] Long. The bit to toggle.

Return Values

BigInteger -  A new BigInteger with the specified bit flipped.

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 flipped.

Values of Nothing will be treated as zero.

See Also

Project CorLib Overview

Class BigIntegerStatic Overview