| 
    Arbitrary-Precision Math | 
Documentation Contents | 
TheEnhancementsjava.mathpackage supports arbitrary-precision math. The package consists of two classes:
BigIntegernumbers are immutable, arbitrary-precision integers. TheBigIntegerclass 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.BigDecimalnumbers are immutable, arbitrary-precision signed decimal numbers, suitable for monetary calculations. TheBigDecimalclass provides operations for basic arithmetic, scale manipulation, comparison, format conversion, and hashing.
|  
   Copyright © 2002
   Sun Microsystems, Inc.
    All Rights Reserved.
 Please send comments to: j2se-comments@sun.com  | 
    Java Software  |