Java.math: Difference between revisions
Appearance
Content deleted Content added
NickelShoe (talk | contribs) so you mean {{merge}}--deprod |
Merged page to Java Platform, Standard Edition#java.math and changed page to a redirect |
||
Line 1: | Line 1: | ||
#REDIRECT [[Java Platform, Standard Edition#java.math]] |
|||
{{lowercase|title=java.math}} |
|||
{{mergeto|Java_Platform%2C_Standard_Edition#java.math}}'''<code>java.math</code>''' is a [[packages in Java|package]] in the [[Java programming language]], containing the [[Class (computer science)|classes]] for performing arbitrary-precision integer arithmetic and arbitrary-precision decimal arithmetic. |
|||
To use the objects within this package in your Java code it is convenient to include the statement: |
|||
import java.math.*; |
|||
==Package content== |
|||
===Classes=== |
|||
*{{Javadoc:SE|java/math|BigDecimal}} – provides arbitrary-precision signed decimal numbers. BigDecimal gives the user control over rounding behavior through <code>RoundingMode</code>. |
|||
*{{Javadoc:SE|java/math|BigInteger}} – provides arbitrary-precision integers. Operations on BigIntegers do not [[Arithmetic_overflow | overflow]] or lose precision. In addition to standard arithmetic operations, it provides [[modular arithmetic]], [[Greatest_common_divisor | GCD]] calculation, [[primality testing]], [[prime number | prime]] generation, [[bit]] manipulation, and other miscellaneous operations. |
|||
*{{Javadoc:SE|java/math|MathContext}} – encapsulate the context settings which describe certain rules for numerical operators. |
|||
===Enums=== |
|||
*{{Javadoc:SE|java/math|RoundingMode}} – provides eight rounding behaviors. |
|||
==External links== |
|||
* {{Javadoc:SE|package=java.math|java/math}} (API [[Javadoc]] documentation) |
|||
[[Category:Java programming language]] |
Revision as of 18:12, 23 February 2006
Redirect to: