BigInteger.FlipBit(Int32) Method

Definition

Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.

[Android.Runtime.Register("flipBit", "(I)Ljava/math/BigInteger;", "GetFlipBit_IHandler")]
public virtual Java.Math.BigInteger FlipBit (int n);
[<Android.Runtime.Register("flipBit", "(I)Ljava/math/BigInteger;", "GetFlipBit_IHandler")>]
abstract member FlipBit : int -> Java.Math.BigInteger
override this.FlipBit : int -> Java.Math.BigInteger

Parameters

n
Int32

index of bit to flip.

Returns

this ^ (1<<n)

Attributes

Exceptions

Remarks

Java documentation for java.math.BigInteger.flipBit(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to