scala

object BigDecimal

[source: scala/BigDecimal.scala]

object BigDecimal
extends AnyRef
Author
Stephane Micheloud
Version
1.0
Method Summary
def apply (d : Double) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified double value.
def apply (x : java.lang.String) : BigDecimal
Translates the decimal String representation of a BigDecimal into a BigDecimal.
def apply (x : BigInt) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified BigInt value.
def apply (x : Array[Char]) : BigDecimal
Translates a character array representation of a BigDecimal into a BigDecimal.
def apply (i : Int) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified Integer value.
def apply (l : Long) : BigDecimal
Constructs a BigDecimal whose value is equal to that of the specified long value.
implicit def bigDecimal2ordered (x : BigDecimal) : Ordered[BigDecimal]
Implicit conversion from BigDecimal to Ordered.
implicit def double2bigDecimal (d : Double) : BigDecimal
Implicit copnversion from Double to BigDecimal.
implicit def int2bigDecimal (i : Int) : BigDecimal
Implicit conversion from Int to BigDecimal.
implicit def long2bigDecimal (l : Long) : BigDecimal
Implicit copnversion from Long 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
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(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(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(x : Array[Char]) : BigDecimal
Translates a character array representation of a BigDecimal into a BigDecimal.

def apply(x : java.lang.String) : BigDecimal
Translates the decimal String representation of a BigDecimal into a 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

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

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

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

implicit def bigDecimal2ordered(x : BigDecimal) : Ordered[BigDecimal]
Implicit conversion from BigDecimal to Ordered.