| package java.math
|
Java SE 6 |
| Details
Provides classes for performing arbitrary-precision integer arithmetic
(BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).
BigInteger is analogous to Java's primitive integer types except that it
provides arbitrary precision, hence operations on BigIntegers do not overflow
or lose precision. In addition to standard arithmetic operations, BigInteger
provides modular arithmetic, GCD calculation, primality testing, prime
generation, bit manipulation, and a few other miscellaneous operations.
BigDecimal provides arbitrary-precision signed decimal numbers suitable for
currency calculations and the like. BigDecimal gives the user complete
control over rounding behavior, allowing the user to choose from a
comprehensive set of eight rounding modes.
|
Enumerations
| Classes
BigDecimal BigInteger MathContext |
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|