Scala Library Documentation


scala/BigDecimal.scala
]
class
BigDecimal(val
bigDecimal : java.math.BigDecimal)
extends
java.lang.Number with
AnyRefMethod Summary  
def

*
(that : BigDecimal) : BigDecimal
Multiplication of BigDecimals

def

+
(that : BigDecimal) : BigDecimal
Addition of BigDecimals

def


(that : BigDecimal) : BigDecimal
Subtraction of BigDecimals

def

/
(that : BigDecimal) : BigDecimal
Division of BigDecimals

def

<
(that : BigDecimal) : Boolean
Lessthan of BigDecimals

def

<=
(that : BigDecimal) : Boolean
Lessthanorequals comparison of BigDecimals

def

>
(that : BigDecimal) : Boolean
Greaterthan comparison of BigDecimals

def

>=
(that : BigDecimal) : Boolean
Greaterthanorequals comparison of BigDecimals

def

abs
: BigDecimal
Returns the absolute value of this BigDecimal

override def

byteValue
: Byte
Converts this BigDecimal to a byte.
If the BigDecimal is too big to fit in a byte, only the loworder 8 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigDecimal value as well as return a result with the opposite sign.

def

charValue
: Char
Converts this BigDecimal to a char.
If the BigDecimal is too big to fit in a char, only the loworder 16 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigDecimal value and that it always returns a positive result.

def

compare
(that : BigDecimal) : Int
Compares this BigDecimal with the specified BigDecimal

def

doubleValue
: Double
Converts this BigDecimal to a Double.
if this BigDecimal has too great a magnitude to represent as a float,
it will be converted to
Float.NEGATIVE_INFINITY or
Float.POSITIVE_INFINITY as appropriate. 
override def

equals
(that : Any) : Boolean
Compares this BigDecimal with the specified value for equality.

def

equals
(that : BigDecimal) : Boolean
Compares this BigDecimal with the specified BigDecimal for equality.

def

floatValue
: Float
Converts this BigDecimal to a float.
if this BigDecimal has too great a magnitude to represent as a float,
it will be converted to
Float.NEGATIVE_INFINITY or
Float.POSITIVE_INFINITY as appropriate. 
override def

hashCode
: Int
Returns the hash code for this BigDecimal.

def

intValue
: Int
Converts this BigDecimal to an int.
If the BigDecimal is too big to fit in a char, only the loworder 32 bits
are returned. Note that this conversion can lose information about the
overall magnitude of the BigDecimal value as well as return a result with
the opposite sign.

def

longValue
: Long
Converts this BigDecimal to a Long.
If the BigDecimal is too big to fit in a char, only the loworder 64 bits
are returned. Note that this conversion can lose information about the
overall magnitude of the BigDecimal value as well as return a result with
the opposite sign.

def

max
(that : BigDecimal) : BigDecimal
Returns the maximum of this and that

def

min
(that : BigDecimal) : BigDecimal
Returns the minimum of this and that

def

scale
: Int
Returns the scale of this
BigDecimal . 
def

setScale
(scale : Int) : BigDecimal
Returns a
BigDecimal whose scale is the specified value, and whose value is
numerically equal to this BigDecimal's. 
def

setScale (scale : Int, mode : Value) : BigDecimal 
override def

shortValue
: Short
Converts this BigDecimal to a short.
If the BigDecimal is too big to fit in a byte, only the loworder 16 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigDecimal value as well as return a result with the opposite sign.

def

signum
: Int
Returns the sign of this BigDecimal, i.e.
1 if it is less than 0,
+1 if it is greater than 0
0 if it is equal to 0

def

toBigInt
: BigInt
Converts this
BigDecimal to a BigInteger. 
override def

toString
: java.lang.String
Returns the decimal String representation of this BigDecimal.

def

unary_
: BigDecimal
Returns a BigDecimal whose value is the negation of this BigDecimal

Methods inherited from AnyRef  
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized 
Methods inherited from Any  
==, !=, isInstanceOf, asInstanceOf 
Method Details 
override
def
hashCode : Int
def
equals(that : BigDecimal) : Boolean
def
compare(that : BigDecimal) : Int
def
<=(that : BigDecimal) : Boolean
def
>=(that : BigDecimal) : Boolean
def
<(that : BigDecimal) : Boolean
def
>(that : BigDecimal) : Boolean
def
+(that : BigDecimal) : BigDecimal
def
(that : BigDecimal) : BigDecimal
def
*(that : BigDecimal) : BigDecimal
def
/(that : BigDecimal) : BigDecimal
def
min(that : BigDecimal) : BigDecimal
def
max(that : BigDecimal) : BigDecimal
def
unary_ : BigDecimal
def
abs : BigDecimal
def
signum : Int
def
scale : Int
BigDecimal
.
def
setScale(scale : Int) : BigDecimal
BigDecimal
whose scale is the specified value, and whose value is
numerically equal to this BigDecimal's.
def
setScale(scale : Int, mode : Value) : BigDecimal
override
def
byteValue : Byte
override
def
shortValue : Short
def
charValue : Char
def
intValue : Int
def
longValue : Long
def
floatValue : Float
Float.NEGATIVE_INFINITY
or
Float.POSITIVE_INFINITY
as appropriate.
def
doubleValue : Double
Float.NEGATIVE_INFINITY
or
Float.POSITIVE_INFINITY
as appropriate.
def
toBigInt : BigInt
BigDecimal
to a BigInteger.override
def
toString : java.lang.String
Scala Library Documentation

