言語

BigInteger.TestBit(Int32) メソッド

定義

指定されたビットが設定されている場合にのみ、 true を返します。

[Android.Runtime.Register("testBit", "(I)Z", "GetTestBit_IHandler")]
public virtual bool TestBit(int n);
[<Android.Runtime.Register("testBit", "(I)Z", "GetTestBit_IHandler")>]
abstract member TestBit : int -> bool
override this.TestBit : int -> bool

パラメーター

n
Int32

テストするビットのインデックス。

返品

true 指定されたビットが設定されている場合にのみ、

属性

例外

n 場合。

注釈

指定されたビットが設定されている場合にのみ、 true を返します。 (コンピューティング ((this & (1<<n)) != 0))。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象