Java常用类库--大数处理类--BigInteger
Java常用类库--大数处理类
·操作整型:BigInteger类
·操作小数:BigDecimal类
BigInteger类:
BigInteger类是在java.math包中,方法如下:
字段摘要 | |
static | ONE |
static | TEN |
static | ZERO |
构造方法摘要 |
BigInteger(byte[] |
BigInteger(int |
BigInteger(int |
BigInteger(int |
BigInteger(String |
BigInteger(String |
方法摘要 | ||
abs() | ||
add(BigInteger | ||
and(BigInteger | ||
andNot(BigInteger | ||
| bitCount() | |
| bitLength() | |
clearBit(int | ||
| compareTo(BigInteger | |
divide(BigInteger | ||
divideAndRemainder(BigInteger | ||
| doubleValue() | |
| ||
flipBit(int | ||
| floatValue() | |
gcd(BigInteger | ||
| getLowestSetBit() | |
| hashCode() | |
| intValue() | |
| isProbablePrime(int | |
| longValue() | |
max(BigInteger | ||
min(BigInteger | ||
mod(BigInteger | ||
modInverse(BigInteger | ||
modPow(BigInteger | ||
multiply(BigInteger | ||
negate() | ||
nextProbablePrime() | ||
not() | ||
or(BigInteger | ||
pow(int | ||
static | probablePrime(int | |
remainder(BigInteger | ||
setBit(int | ||
shiftLeft(int | ||
shiftRight(int | ||
| signum() | |
subtract(BigInteger | ||
| testBit(int | |
| toByteArray() | |
toString() | ||
toString(int | ||
static | valueOf(long | |
xor(BigInteger |