forked from JavaDevTeam/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava-math-BigInteger.java
More file actions
62 lines (57 loc) · 1.63 KB
/
java-math-BigInteger.java
File metadata and controls
62 lines (57 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---------------------------
BigInteger |
---------------------------
# 静态方法
BigInteger probablePrime(int bitLength, Random rnd)
BigInteger valueOf(long val)
# 构造函数
BigInteger(byte[] val)
BigInteger(int signum, byte[] magnitude)
BigInteger(int bitLength, int certainty, Random rnd)
BigInteger(int numBits, Random rnd)
BigInteger(String val)
BigInteger(String val, int radix)
# 实例方法
BigInteger abs()
BigInteger add(BigInteger val)
BigInteger subtract(BigInteger val)
BigInteger multiply(BigInteger val)
BigInteger divide(BigInteger val)
* 加减乘除
BigInteger and(BigInteger val)
BigInteger andNot(BigInteger val)
int bitCount()
int bitLength()
byte byteValueExact()
BigInteger clearBit(int n)
BigInteger[] divideAndRemainder(BigInteger val)
double doubleValue()
float floatValue()
BigInteger flipBit(int n)
BigInteger gcd(BigInteger val)
int getLowestSetBit()
int intValue()
int intValueExact()
boolean isProbablePrime(int certainty)
long longValue()
long longValueExact()
BigInteger max(BigInteger val)
BigInteger min(BigInteger val)
BigInteger mod(BigInteger m)
BigInteger modInverse(BigInteger m)
BigInteger modPow(BigInteger exponent, BigInteger m)
BigInteger negate()
BigInteger nextProbablePrime()
BigInteger not()
BigInteger or(BigInteger val)
BigInteger pow(int exponent)
BigInteger remainder(BigInteger val)
BigInteger setBit(int n)
BigInteger shiftLeft(int n)
BigInteger shiftRight(int n)
short shortValueExact()
int signum()
boolean testBit(int n)
byte[] toByteArray()
String toString(int radix)
BigInteger xor(BigInteger val)