Java-math-biginteger-clearbit
提供:Dev Guides
Java.math.BigInteger.clearBit()メソッド
説明
- java.math.BigInteger.clearBit(int n)*は、指定されたビットがクリアされたこのBigIntegerと値が等しいBigIntegerを返します。 (this&〜(1 << n))を計算します。
宣言
以下は* java.math.BigInteger.clearBit()*メソッドの宣言です。
パラメーター
戻り値
このメソッドは、this&〜(1 << n)という値のBigIntegerオブジェクトを返します。
例外
例
次の例は、math.BigInteger.clearBit()メソッドの使用方法を示しています。
上記のプログラムをコンパイルして実行すると、次の結果が生成されます-