Module java.base
Package java.math

# Class BigDecimal

=
public class BigDecimal
extends java.lang.Number
implements java.lang.Comparable<java.math.BigDecimal>

## Fields

- =
  public static final java.math.BigDecimal ONE
- =
  @Deprecated(since="9")
  public static final int ROUND_CEILING = 2
- =
  @Deprecated(since="9")
  public static final int ROUND_DOWN = 1
- =
  @Deprecated(since="9")
  public static final int ROUND_FLOOR = 3
- =
  @Deprecated(since="9")
  public static final int ROUND_HALF_DOWN = 5
- =
  @Deprecated(since="9")
  public static final int ROUND_HALF_EVEN = 6
- =
  @Deprecated(since="9")
  public static final int ROUND_HALF_UP = 4
- =
  @Deprecated(since="9")
  public static final int ROUND_UNNECESSARY = 7
- =
  @Deprecated(since="9")
  public static final int ROUND_UP = 0
- =
  public static final java.math.BigDecimal TEN
- =
  public static final java.math.BigDecimal TWO
- =
  public static final java.math.BigDecimal ZERO

## Constructors

- =
  public BigDecimal(int arg0)
- =
  public BigDecimal(int arg0, java.math.MathContext arg1)
- =
  public BigDecimal(long arg0)
- =
  public BigDecimal(long arg0, java.math.MathContext arg1)
- =
  public BigDecimal(double arg0)
- =
  public BigDecimal(double arg0, java.math.MathContext arg1)
- =
  public BigDecimal(char[] arg0)
- =
  public BigDecimal(char[] arg0, int arg1, int arg2)
- =
  public BigDecimal(char[] arg0, int arg1, int arg2, java.math.MathContext arg3)
- =
  public BigDecimal(char[] arg0, java.math.MathContext arg1)
- =
  public BigDecimal(java.lang.String arg0)
- =
  public BigDecimal(java.lang.String arg0, java.math.MathContext arg1)
- =
  public BigDecimal(java.math.BigInteger arg0)
- =
  public BigDecimal(java.math.BigInteger arg0, int arg1)
- =
  public BigDecimal(java.math.BigInteger arg0, int arg1, java.math.MathContext arg2)
- =
  public BigDecimal(java.math.BigInteger arg0, java.math.MathContext arg1)

## Methods

- =
  public java.math.BigDecimal abs()
- =
  public java.math.BigDecimal abs(java.math.MathContext arg0)
- =
  public java.math.BigDecimal add(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal add(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public byte byteValueExact()
- =
  public int compareTo(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal divide(java.math.BigDecimal arg0)
- =
  @Deprecated(since="9")
  public java.math.BigDecimal divide(java.math.BigDecimal arg0, int arg1)
- =
  @Deprecated(since="9")
  public java.math.BigDecimal divide(java.math.BigDecimal arg0, int arg1, int arg2)
- =
  public java.math.BigDecimal divide(java.math.BigDecimal arg0, int arg1, java.math.RoundingMode arg2)
- =
  public java.math.BigDecimal divide(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public java.math.BigDecimal divide(java.math.BigDecimal arg0, java.math.RoundingMode arg1)
- =
  public java.math.BigDecimal[] divideAndRemainder(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal[] divideAndRemainder(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public java.math.BigDecimal divideToIntegralValue(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal divideToIntegralValue(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public double doubleValue()
- =
  public boolean equals(java.lang.Object arg0)
- =
  public float floatValue()
- =
  public int hashCode()
- =
  public int intValue()
- =
  public int intValueExact()
- =
  public long longValue()
- =
  public long longValueExact()
- =
  public java.math.BigDecimal max(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal min(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal movePointLeft(int arg0)
- =
  public java.math.BigDecimal movePointRight(int arg0)
- =
  public java.math.BigDecimal multiply(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal multiply(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public java.math.BigDecimal negate()
- =
  public java.math.BigDecimal negate(java.math.MathContext arg0)
- =
  public java.math.BigDecimal plus()
- =
  public java.math.BigDecimal plus(java.math.MathContext arg0)
- =
  public java.math.BigDecimal pow(int arg0)
- =
  public java.math.BigDecimal pow(int arg0, java.math.MathContext arg1)
- =
  public int precision()
- =
  public java.math.BigDecimal remainder(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal remainder(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public java.math.BigDecimal round(java.math.MathContext arg0)
- =
  public int scale()
- =
  public java.math.BigDecimal scaleByPowerOfTen(int arg0)
- =
  public java.math.BigDecimal setScale(int arg0)
- =
  @Deprecated(since="9")
  public java.math.BigDecimal setScale(int arg0, int arg1)
- =
  public java.math.BigDecimal setScale(int arg0, java.math.RoundingMode arg1)
- =
  public short shortValueExact()
- =
  public int signum()
- =
  public java.math.BigDecimal sqrt(java.math.MathContext arg0)
- =
  public java.math.BigDecimal stripTrailingZeros()
- =
  public java.math.BigDecimal subtract(java.math.BigDecimal arg0)
- =
  public java.math.BigDecimal subtract(java.math.BigDecimal arg0, java.math.MathContext arg1)
- =
  public java.math.BigInteger toBigInteger()
- =
  public java.math.BigInteger toBigIntegerExact()
- =
  public java.lang.String toEngineeringString()
- =
  public java.lang.String toPlainString()
- =
  public java.lang.String toString()
- =
  public java.math.BigDecimal ulp()
- =
  public java.math.BigInteger unscaledValue()
- =
  public static java.math.BigDecimal valueOf(long arg0)
- =
  public static java.math.BigDecimal valueOf(long arg0, int arg1)
- =
  public static java.math.BigDecimal valueOf(double arg0)

## Serialized Form

=

### serialVersionUID

=6108874887143696463

### Serialized Fields

- =
  java.math.BigInteger intVal
- =
  int scale

### Serialization Methods

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

## Summary

No differences.