How to use operators for BigInteger
问题 import java.lang.Math; import java.math.BigInteger; import java.math.BigDecimal; public class Main { public static void main(String[] args) { int e1 = 20, d = 13; BigInteger C = BigDecimal.valueOf(e1).toBigInteger(); BigInteger po = C.pow(d); System.out.println("pow is:" + po); int num = 11; BigInteger x = po; BigInteger n = BigDecimal.valueOf(num).toBigInteger(); BigInteger p, q, m; System.out.println("x: " + x); q=(x / n); p=(q * n); m=(x - p); System.out.println("mod is:" + m); } } I've