scala

object BigDecimal

[source: scala/BigDecimal.scala]

object BigDecimal
extends AnyRef
Author
Stephane Micheloud
Version
1.0
Value Summary
val defaultMathContext : java.math.MathContext
Method Summary
def apply (bd : java.math.BigDecimal) : BigDecimal
def apply (x : java.lang.String, mc : java.math.MathContext) : BigDecimal
def apply (x : java.lang.String) : BigDecimal
Translates the decimal String representation of a BigDecimal into a BigDecimal.
def apply (x : Array[Char]) : BigDecimal
Translates a character array representation of a BigDecimal into a BigDecimal.
def apply (unscaledVal : Long, scale : Int, mc : java.math.MathContext) : BigDecimal
def apply (i : Int, mc : java.math.MathContext) : BigDecimal
def apply (d : Double) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified double value.
def apply (unscaledVal : Long, scale : Int) : BigDecimal
Constructs a BigDecimal whose unscaled value is equal to that of the specified long value.
def apply (bd : java.math.BigDecimal, mc : java.math.MathContext) : BigDecimal
def apply (x : BigInt) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified BigInt value.
def apply (l : Long) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified long value.
def apply (x : Array[Char], mc : java.math.MathContext) : BigDecimal
def apply (x : BigInt, mc : java.math.MathContext) : BigDecimal
def apply (unscaledVal : BigInt, scale : Int, mc : java.math.MathContext) : BigDecimal
def apply (d : Double, mc : java.math.MathContext) : BigDecimal
def apply (l : Long, mc : java.math.MathContext) : BigDecimal
def apply (i : Int) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified Integer value.
def apply (unscaledVal : BigInt, scale : Int) : BigDecimal
Constructs a BigDecimal whose unscaled value is equal to that of the specified BigInt value.
implicit def bigInt2bigDecimal (x : BigInt) : BigDecimal
Implicit conversion from BigInt to BigDecimal.
implicit def double2bigDecimal (d : Double) : BigDecimal
Implicit conversion from Double to BigDecimal.
implicit def float2bigDecimal (f : Float) : BigDecimal
Implicit conversion from Float to BigDecimal.
implicit def int2bigDecimal (i : Int) : BigDecimal
Implicit conversion from Int to BigDecimal.
implicit def long2bigDecimal (l : Long) : BigDecimal
Implicit conversion from Long to BigDecimal.
implicit def string2bigDecimal (s : java.lang.String) : BigDecimal
Implicit conversion from String to BigDecimal.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Object Summary
object RoundingMode extends Enumeration
Value Details
val defaultMathContext : java.math.MathContext

Method Details
def apply(i : Int) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified Integer value.
Parameters
i - the specified integer value
Returns
the constructed BigDecimal

def apply(i : Int, mc : java.math.MathContext) : BigDecimal

def apply(l : Long) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified long value.
Parameters
l - the specified long value
Returns
the constructed BigDecimal

def apply(l : Long, mc : java.math.MathContext) : BigDecimal

def apply(unscaledVal : Long, scale : Int) : BigDecimal
Constructs a BigDecimal whose unscaled value is equal to that of the specified long value.
Parameters
unscaledVal - the value
scale - the scale
Returns
the constructed BigDecimal

def apply(unscaledVal : Long, scale : Int, mc : java.math.MathContext) : BigDecimal

def apply(d : Double) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified double value.
Parameters
d - the specified Double value
Returns
the constructed BigDecimal

def apply(d : Double, mc : java.math.MathContext) : BigDecimal

def apply(x : Array[Char]) : BigDecimal
Translates a character array representation of a BigDecimal into a BigDecimal.

def apply(x : Array[Char], mc : java.math.MathContext) : BigDecimal

def apply(x : java.lang.String) : BigDecimal
Translates the decimal String representation of a BigDecimal into a BigDecimal.

def apply(x : java.lang.String, mc : java.math.MathContext) : BigDecimal

def apply(x : BigInt) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified BigInt value.
Parameters
x - the specified BigInt value
Returns
the constructed BigDecimal

def apply(x : BigInt, mc : java.math.MathContext) : BigDecimal

def apply(unscaledVal : BigInt, scale : Int) : BigDecimal
Constructs a BigDecimal whose unscaled value is equal to that of the specified BigInt value.
Parameters
unscaledVal - the specified BigInt value
scale - the scale
Returns
the constructed BigDecimal

def apply(unscaledVal : BigInt, scale : Int, mc : java.math.MathContext) : BigDecimal

def apply(bd : java.math.BigDecimal) : BigDecimal

def apply(bd : java.math.BigDecimal, mc : java.math.MathContext) : BigDecimal

implicit def int2bigDecimal(i : Int) : BigDecimal
Implicit conversion from Int to BigDecimal.

implicit def long2bigDecimal(l : Long) : BigDecimal
Implicit conversion from Long to BigDecimal.

implicit def float2bigDecimal(f : Float) : BigDecimal
Implicit conversion from Float to BigDecimal.
Since
2.8

implicit def double2bigDecimal(d : Double) : BigDecimal
Implicit conversion from Double to BigDecimal.

implicit def string2bigDecimal(s : java.lang.String) : BigDecimal
Implicit conversion from String to BigDecimal.
Since
2.8

implicit def bigInt2bigDecimal(x : BigInt) : BigDecimal
Implicit conversion from BigInt to BigDecimal.
Since
2.8