Modifier and Type | Method and Description |
---|---|
BigInteger | add(BigInteger val) 返回值为(this + val) |
BigInteger | subtract(BigInteger val) 返回值为(this - val) |
BigInteger | multiply(BigInteger val) 返回值为(this * val) |
BigInteger | divide(BigInteger val) 返回值为(this / val) |
BigInteger | remainder(BigInteger val)返回值为(this % val) |
BigInteger | shiftLeft(int n) 返回值为(this << n) |
BigInteger | shiftRight(int n) 返回值为(this >> n) |
BigInteger | max(BigInteger val) 返回值为大值 |
BigInteger | min(BigInteger val) 返回值为小值 |
BigInteger | abs() 返回值为此BigInteger的绝对值。 |
BigInteger | and(BigInteger val) 返回值为 (this & val) |
BigInteger | andNot(BigInteger val) 返回值为 (this & ~val) |
BigInteger | not() 返回值为 (~this) |
BigInteger | or(BigInteger val) 返回值为 (this |
BigInteger | xor(BigInteger val) 返回值为 (this ^ val) |
BigInteger | gcd(BigInteger val) 返回值为最大公约数 |
BigInteger | mod(BigInteger m) 返回值为 (this mod m) |
BigInteger | pow(int exponent) 返回值为(this^exponent) |
boolean | equals(Object x) 将此BigInteger与指定对象是否相等。 |
Java中BigInteger类常用接口方法
最新推荐文章于 2024-08-18 22:44:51 发布