Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.math.BigDecimal

Availability: JDK 1.1

public class BigDecimal extends Number {
   // Public Constructors
      public BigDecimal(String val) throws NumberFormatException;
      public BigDecimal(double val) throws NumberFormatException;
      public BigDecimal(BigInteger val);
      public BigDecimal(BigInteger val, int scale) throws NumberFormatException;
   // Constants
      public static final int ROUND_CEILING;
      public static final int ROUND_DOWN;
      public static final int ROUND_FLOOR;
      public static final int ROUND_HALF_DOWN;
      public static final int ROUND_HALF_EVEN;
      public static final int ROUND_HALF_UP;
      public static final int ROUND_UNNECESSARY;
      public static final int ROUND_UP;
   // Class Methods
      public static BigDecimal valueOf(long val, int scale) throws NumberFormatException;
      public static BigDecimal valueOf(long val);
   // Public Instance Methods
      public BigDecimal abs();
      public BigDecimal add(BigDecimal val);
      public int compareTo(BigDecimal val);
      public BigDecimal divide(BigDecimal val, int scale, int roundingMode) throws ArithmeticException, IllegalArgumentException;
      public BigDecimal divide(BigDecimal val, int roundingMode) throws ArithmeticException, IllegalArgumentException;
      public double doubleValue();  // Defines Number.doubleValue()
      public boolean equals(Object x);  // Overrides Object.equals()
      public float floatValue();  // Defines Number.floatValue()
      public int hashCode();  // Overrides Object.hashCode()
      public int intValue();  // Defines Number.intValue()
      public long longValue();  // Defines Number.longValue()
      public BigDecimal max(BigDecimal val);
      public BigDecimal min(BigDecimal val);
      public BigDecimal movePointLeft(int n);
      public BigDecimal movePointRight(int n);
      public BigDecimal multiply(BigDecimal val);
      public BigDecimal negate();
      public int scale();
      public BigDecimal setScale(int scale, int roundingMode) throws ArithmeticException, IllegalArgumentException;
      public BigDecimal setScale(int scale) throws ArithmeticException, IllegalArgumentException;
      public int signum();
      public BigDecimal subtract(BigDecimal val);
      public BigInteger toBigInteger();
      public String toString();  // Overrides Object.toString()
}
Passed To:
BigDecimal.add(), BigDecimal.compareTo(), BigDecimal.divide(), BigDecimal.max(), BigDecimal.min(), BigDecimal.multiply(), BigDecimal.subtract(), PreparedStatement.setBigDecimal().
Returned By:
BigDecimal.abs(), BigDecimal.add(), BigDecimal.divide(), BigDecimal.max(), BigDecimal.min(), BigDecimal.movePointLeft(), BigDecimal.movePointRight(), BigDecimal.multiply(), BigDecimal.negate(), BigDecimal.setScale(), BigDecimal.subtract(), BigDecimal.valueOf(), CallableStatement.getBigDecimal(), ResultSet.getBigDecimal().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.