You can use the
Example:
BigInteger class for integers and BigDecimal for numbers with decimal digits. Both classes are defined in java.math package.Example:
BigInteger reallyBig = new BigInteger("1234567890123456890");
BigInteger notSoBig = new BigInteger("2743561234");
reallyBig = reallyBig.add(notSoBig);
No comments:
Post a Comment