JML

java.math
Class BigDecimal

java.lang.Object
  extended byjava.lang.Number
      extended byjava.math.BigDecimal
All Implemented Interfaces:
Comparable, Serializable

public class BigDecimal
extends Number
implements Comparable


Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
private  BigInteger intVal
           
static int ROUND_CEILING
           
static int ROUND_DOWN
           
static int ROUND_FLOOR
           
static int ROUND_HALF_DOWN
           
static int ROUND_HALF_EVEN
           
static int ROUND_HALF_UP
           
static int ROUND_UNNECESSARY
           
static int ROUND_UP
           
private  int scale
           
private static long serialVersionUID
           
 
Constructor Summary
BigDecimal(double)
           
BigDecimal(String)
           
BigDecimal(BigInteger)
           
BigDecimal(BigInteger, int)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Model methods inherited from interface java.lang.Comparable
definedComparison, sgn
 
Method Summary
 BigDecimal abs()
           
 BigDecimal add(BigDecimal)
           
 int compareTo(Object)
           
 int compareTo(BigDecimal)
           
 BigDecimal divide(BigDecimal, int)
           
 BigDecimal divide(BigDecimal, int, int)
           
 double doubleValue()
           
 boolean equals(Object)
           
 float floatValue()
           
private  String getValueString(int, String, int)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
private static void matchScale(BigDecimal[])
           
 BigDecimal max(BigDecimal)
           
 BigDecimal min(BigDecimal)
           
 BigDecimal movePointLeft(int)
           
 BigDecimal movePointRight(int)
           
 BigDecimal multiply(BigDecimal)
           
 BigDecimal negate()
           
private  void readObject(ObjectInputStream)
           
private  String roundup(String)
           
 int scale()
           
 BigDecimal setScale(int)
           
 BigDecimal setScale(int, int)
           
 int signum()
           
 BigDecimal subtract(BigDecimal)
           
private static BigInteger timesTenToThe(BigInteger, int)
           
 BigInteger toBigInteger()
           
 String toString()
           
 BigInteger unscaledValue()
           
static BigDecimal valueOf(long)
           
static BigDecimal valueOf(long, int)
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ROUND_HALF_EVEN

public static final int ROUND_HALF_EVEN

ROUND_CEILING

public static final int ROUND_CEILING

serialVersionUID

private static final long serialVersionUID

ROUND_UNNECESSARY

public static final int ROUND_UNNECESSARY

ROUND_HALF_UP

public static final int ROUND_HALF_UP

intVal

private BigInteger intVal

ROUND_HALF_DOWN

public static final int ROUND_HALF_DOWN

ROUND_FLOOR

public static final int ROUND_FLOOR

ROUND_UP

public static final int ROUND_UP

ROUND_DOWN

public static final int ROUND_DOWN

scale

private int scale
Constructor Detail

BigDecimal

public BigDecimal(double)

BigDecimal

public BigDecimal(String)

BigDecimal

public BigDecimal(BigInteger)

BigDecimal

public BigDecimal(BigInteger,
                  int)
Method Detail

doubleValue

public double doubleValue()

floatValue

public float floatValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

intValue

public int intValue()

scale

public int scale()

signum

public int signum()

longValue

public long longValue()

readObject

private void readObject(ObjectInputStream)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException

compareTo

public int compareTo(Object)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

abs

public BigDecimal abs()

negate

public BigDecimal negate()

movePointLeft

public BigDecimal movePointLeft(int)

movePointRight

public BigDecimal movePointRight(int)

setScale

public BigDecimal setScale(int)

setScale

public BigDecimal setScale(int,
                           int)

valueOf

public static BigDecimal valueOf(long)

valueOf

public static BigDecimal valueOf(long,
                                 int)

compareTo

public int compareTo(BigDecimal)

matchScale

private static void matchScale(BigDecimal[])

toBigInteger

public BigInteger toBigInteger()

unscaledValue

public BigInteger unscaledValue()

getValueString

private String getValueString(int,
                              String,
                              int)

roundup

private String roundup(String)

add

public BigDecimal add(BigDecimal)

max

public BigDecimal max(BigDecimal)

min

public BigDecimal min(BigDecimal)

multiply

public BigDecimal multiply(BigDecimal)

subtract

public BigDecimal subtract(BigDecimal)

divide

public BigDecimal divide(BigDecimal,
                         int)

divide

public BigDecimal divide(BigDecimal,
                         int,
                         int)

timesTenToThe

private static BigInteger timesTenToThe(BigInteger,
                                        int)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.