Description Of BigDecimal: plus()
The java.math.BigDecimal.plus() returns a BigDecimal whose value is (+this) , and whose scale is this.scale().BigDecimal.plus() method returns this
Code Example Java BigDecimal
import java.math.BigInteger; public class BigIntegerExam { public static void main(String[] args) { BigInteger bi1 = new BigInteger("8"); BigInteger bi2 = new BigInteger("2"); BigInteger bi3 = bi1.plus(); BigInteger bi4 = bi2.plus(); System.out.println(bi3); System.out.println(bi4); } }
ไม่มีความคิดเห็น :
แสดงความคิดเห็น