<div> JavaScript is disabled on your browser.
Skip navigation links
Java™ Platform
Standard Ed. 8
compact1

Package java.math

用于执行任意精度的整数运算提供的类( BigInteger)和任意精度的小数运算( BigDecimal)。

See: 描述

Package java.math Description

用于执行任意精度的整数运算提供的类( BigInteger)和任意精度的小数运算( BigDecimal)。 BigInteger是类似于原始的整数类型,它除了提供任意精度,因此操作上 BigIntegers不会溢出或丢失精度。除了标准的算术运算, BigInteger提供模块化的算术,GCD计算,素性测试,原代、位操作,和其他一些杂项作业。 BigDecimal提供任意精度的十进制数字适用于货币计算等。 BigDecimal给用户完全控制舍入行为,允许用户选择一套全面的八舍入模式。
从以下版本开始:
JDK1.1
Skip navigation links
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.

本帮助文档是使用 《百度翻译》翻译,请与英文版配合使用 by--QQ:654638585