Description Of BigInteger: remainder(BigInteger val)
The java.math.BigInteger.remainder(BigInteger val) returns a BigInteger whose value is (this % val)BigInteger.remainder(BigInteger val) method returns this % val
Code Example Java BigInteger
import java.math.BigInteger; public class BigIntegerExam { public static void main(String[] args) { BigInteger bi1 = new BigInteger("16"); BigInteger bi2 = new BigInteger("3"); BigInteger bi3 = bi1.remainder(bi2); System.out.println(bi1); // output 16 System.out.println(bi3); // output 1 } }
ไม่มีความคิดเห็น :
แสดงความคิดเห็น