Java.Math.BigInteger.TestBit Method
Tests whether the bit at position n in this is set.

Syntax

[Android.Runtime.Register("testBit", "(I)Z", "GetTestBit_IHandler")]
public virtual bool TestBit (int n)

Parameters

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

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ArithmeticExceptionif n .

Remarks

Tests whether the bit at position n in this is set. The result is equivalent to this & pow(2, n) != 0.

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