|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
A new package,java.math, was added to the JDK 1.1 release. The math package contains two new classes:BigIntegerandBigDecimal.
BigIntegernumbers are immutable arbitrary-precision integers. They provide analogs to all of Java's primitive integer operators and all relevant static methods from thejava.lang.Mathclass. Additionally,BigIntegernumbers provide operations for modular arithmetic, GCD calculation, primality testing, prime generation, single-bit manipulation, and a few other odds and ends.
BigDecimalnumbers are immutable, arbitrary-precision signed decimal numbers, suitable for monetary calculations.BigDecimalnumbers provide operations for basic arithmetic, scale manipulation, comparison, format conversion, and hashing.
javadoc-generated API documentation:
java.math.BigIntegerjava.math.BigDecimal|
|
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.