Java - BigInteger 类

BigInteger 类和 BigDecimal 类可以用于表示任意大小和精度的整数或者十进制数。 它们都是不可变的。 可以使用 new BigInteger(String) 和 new BigDecimal(String) 来创建他俩的实例,使用 add, subtract, multiple, divide, remainder 方法完成算术运算,使用 compareTo 方法比较两个比较大的
相关文章
相关标签/搜索