MathContext
Class MathContext
- java.lang.Object
-
- java.math.MathContext
- All Implemented Interfaces:
- Serializable
public final class MathContext extends Object implements Serializable
Immutable objects which encapsulate the context settings which describe certain rules for numerical operators, such as those implemented by the BigDecimal
class-
The base-independent settings are:
-
precision
: the number of digits to be used for an operation; results are rounded to this precision -
roundingMode
: aRoundingMode
object which specifies the algori