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

Syntax

[Android.Runtime.Register("setBit", "(I)Ljava/math/BigInteger;", "GetSetBit_IHandler")]
public virtual BigInteger SetBit (int n)

Parameters

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

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