Module java.base
Package java.math

# Class MathContext

=
public final class MathContext
extends java.lang.Object
implements java.io.Serializable

## Fields

- =
  public static final java.math.MathContext DECIMAL128
- =
  public static final java.math.MathContext DECIMAL32
- =
  public static final java.math.MathContext DECIMAL64
- =
  public static final java.math.MathContext UNLIMITED

## Constructors

- =
  public MathContext(int arg0)
- =
  public MathContext(int arg0, java.math.RoundingMode arg1)
- =
  public MathContext(java.lang.String arg0)

## Methods

- =
  public boolean equals(java.lang.Object arg0)
- =
  public int getPrecision()
- =
  public java.math.RoundingMode getRoundingMode()
- =
  public int hashCode()
- =
  public java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=5579720004786848255

### Serialized Fields

- =
  int precision
- =
  java.math.RoundingMode roundingMode

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException

## Summary

No differences.