andNot

abstract fun andNot(other: BigInteger): BigInteger

Returns a BigInteger whose value is (this & ~val). This method, which is equivalent to and(val.not()), is provided as a convenience for masking operations. (This method returns a negative BigInteger if and only if this is negative and other is positive.)

Return

this & ~val

Parameters

other

value to be complemented and AND'ed with this BigInteger.


open fun andNot(other: Int): BigInteger
open fun andNot(other: Long): BigInteger