站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Arbitrary Precision Math - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java

Arbitrary-Precision Math

Documentation Contents
The java.math package supports arbitrary-precision math. The package consists of two classes:
  • BigInteger numbers are immutable, arbitrary-precision integers. The BigInteger class provides analogs for all Java language primitive integer operators. The class also supports modular arithmetic, GCD calculation, prime number generation and testing, single-bit manipulation, and various other operations.
  • BigDecimal numbers are immutable, arbitrary-precision signed decimal numbers, suitable for monetary calculations. The BigDecimal class provides operations for basic arithmetic, scale manipulation, comparison, format conversion, and hashing.
API Reference
(javadoc)
Copyright © 1998-99 Sun Microsystems, Inc. All Rights Reserved.

Please send comments to: joshua.bloch@sun.com

 Sun Microsystems, Inc
Java Software