Java.Math.BigInteger.FlipBit Method
Returns a BigInteger which has the same binary representation as this but with the bit at position n flipped.

Syntax

[Android.Runtime.Register("flipBit", "(I)Ljava/math/BigInteger;", "GetFlipBit_IHandler")]
public virtual BigInteger FlipBit (int n)

Parameters

n
position where the bit in this has to be flipped.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ArithmeticExceptionif n .

Remarks

Returns a BigInteger which has the same binary representation as this but with the bit at position n flipped. The result is equivalent to this ^ pow(2, n).

Implementation Note: Usage of this method is not recommended as the current implementation is not efficient.

[Android Documentation]

Requirements

Namespace: Java.Math
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1