andNot

fun andNot(val: 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 val is positive.)

Return

this & ~val

Parameters

val

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