java.math
Class BigDecimal
java.lang.Object
java.lang.Number
java.math.BigDecimal
- All Implemented Interfaces:
- Comparable, Serializable
- public class BigDecimal
- extends Number
- implements Comparable
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
BigDecimal
public BigDecimal(double)
BigDecimal
public BigDecimal(String)
BigDecimal
public BigDecimal(BigInteger)
BigDecimal
public BigDecimal(BigInteger,
int)
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 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.