Scala Library
|
|
scala/math/BigDecimal.scala
]
object
BigDecimal
extends
AnyRefValue Summary | |
val
|
defaultMathContext : java.math.MathContext |
Method Summary | |
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 (x : java.lang.String, 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
(x : java.lang.String) : BigDecimal
Translates the decimal String representation of a
BigDecimal
into a BigDecimal . |
def
|
apply (d : Double, mc : java.math.MathContext) : BigDecimal |
def
|
apply (bd : java.math.BigDecimal) : BigDecimal |
def
|
apply
(unscaledVal : Long, scale : Int) : BigDecimal
Constructs a
BigDecimal whose unscaled value is equal to that
of the specified long value. |
def
|
apply
(d : Double) : BigDecimal
Constructs a
BigDecimal whose value is equal to that of the
specified double value. |
def
|
apply (x : BigInt, mc : java.math.MathContext) : BigDecimal |
def
|
apply (x : Array[Char], 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 (bd : java.math.BigDecimal, mc : java.math.MathContext) : BigDecimal |
def
|
apply (l : Long, mc : java.math.MathContext) : BigDecimal |
def
|
apply
(l : Long) : BigDecimal
Constructs a
BigDecimal whose value is equal to that of the
specified long value. |
def
|
apply (i : Int, 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. |
def
|
apply (unscaledVal : BigInt, scale : Int, mc : java.math.MathContext) : BigDecimal |
implicit def
|
double2bigDecimal
(d : Double) : BigDecimal
Implicit conversion from
Double 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 . |
def
|
valueOf
(d : Double) : BigDecimal
Constructs a
BigDecimal using the java BigDecimal static
valueOf constructor. |
def
|
valueOf (d : Double, mc : java.math.MathContext) : 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 |
Method Details |
def
valueOf(d : Double) : BigDecimal
BigDecimal
using the java BigDecimal static
valueOf constructor.d -
the specified double valueBigDecimal
def
valueOf(d : Double, mc : java.math.MathContext) : BigDecimal
def
apply(i : Int) : BigDecimal
BigDecimal
whose value is equal to that of the
specified Integer
value.i -
the specified integer valueBigDecimal
def
apply(i : Int, mc : java.math.MathContext) : BigDecimal
def
apply(l : Long) : BigDecimal
BigDecimal
whose value is equal to that of the
specified long value.l -
the specified long valueBigDecimal
def
apply(l : Long, mc : java.math.MathContext) : BigDecimal
def
apply(unscaledVal : Long, scale : Int) : BigDecimal
BigDecimal
whose unscaled value is equal to that
of the specified long value.unscaledVal -
the valuescale -
the scaleBigDecimal
def
apply(unscaledVal : Long, scale : Int, mc : java.math.MathContext) : BigDecimal
def
apply(d : Double) : BigDecimal
BigDecimal
whose value is equal to that of the
specified double value.d -
the specified Double
valueBigDecimal
def
apply(d : Double, mc : java.math.MathContext) : BigDecimal
def
apply(x : Array[Char]) : BigDecimal
BigDecimal
into a BigDecimal
.
def
apply(x : Array[Char], mc : java.math.MathContext) : BigDecimal
def
apply(x : java.lang.String) : BigDecimal
BigDecimal
into a BigDecimal
.
def
apply(x : java.lang.String, mc : java.math.MathContext) : BigDecimal
def
apply(x : BigInt) : BigDecimal
BigDecimal
whose value is equal to that of the
specified BigInt
value.x -
the specified BigInt
valueBigDecimal
def
apply(x : BigInt, mc : java.math.MathContext) : BigDecimal
def
apply(unscaledVal : BigInt, scale : Int) : BigDecimal
BigDecimal
whose unscaled value is equal to that
of the specified BigInt
value.unscaledVal -
the specified BigInt
valuescale -
the scaleBigDecimal
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
Int
to BigDecimal
.implicit
def
long2bigDecimal(l : Long) : BigDecimal
Long
to BigDecimal
.implicit
def
double2bigDecimal(d : Double) : BigDecimal
Double
to BigDecimal
.
Scala Library
|
|