clearBit

abstract fun clearBit(n: Int): BigInteger

Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared. (Computes (this & ~(1<<n)).)

Return

this & ~(1<<n)

Parameters

n

index of bit to clear.

Throws

n is negative.