Пример #1
0
 public BigNumber modPow(BigNumber val1, BigNumber val2) {
   return new BigNumber(bigInteger.modPow(val1.getInt(), val2.getInt()));
 }
Пример #2
0
 public BigNumber add(BigNumber val) {
   return new BigNumber(bigInteger.add(val.getInt()));
 }
Пример #3
0
 public BigNumber multiply(BigNumber val) {
   return new BigNumber(bigInteger.multiply(val.getInt()));
 }
Пример #4
0
 public BigNumber remainder(BigNumber val) {
   return new BigNumber(bigInteger.remainder(val.getInt()));
 }
Пример #5
0
 public boolean equals(BigNumber b) {
   return (b.toHexString().equals(this.toHexString()));
 }