Share via


BigInteger.SetBit(Int32) Method

Definition

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

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

Parameters

n
Int32

index of bit to set.

Returns

this | (1<<n)

Attributes

Exceptions

Remarks

Java documentation for java.math.BigInteger.setBit(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