示例#1
0
 public static Number ratioRemainder(Ratio x, Ratio y) {
   BigInteger q =
       x.getNumerator()
           .multiply(y.getDenominator())
           .divide(x.getDenominator().multiply(y.getNumerator()));
   return BigInt.fromBigInteger(q);
 }
示例#2
0
 public static Number bigIntRemainder(BigInt x, BigInt y) {
   return x.remainder(y);
 }