Description Of BigInteger: subtract(BigInteger val)
The java.math.BigInteger.subtract(BigInteger val) returns a BigInteger whose value is (this - val)BigInteger.subtract(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("5");
BigInteger bi2 = new BigInteger("3");
// assign difference of bi1 and bi2 to bi3
BigInteger bi3 = bi1.subtract(bi2);
System.out.println(bi3);
}
}
ไม่มีความคิดเห็น :
แสดงความคิดเห็น