BigIntegerStatic: FlipBit

FlipBit

Flips the specified bit, toggling between True and False.



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

Parameters

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