summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-12-16 14:39:03 +0000
committermichelou <michelou@epfl.ch>2008-12-16 14:39:03 +0000
commitc379973e4c78c931d90e2fc87459931a7f3a2059 (patch)
treecb1c3e4d5f7d63a10d69d05b977a563d4052b416 /src/library
parentee740145d84970cb1942801fbac2afba9a590a3e (diff)
downloadscala-c379973e4c78c931d90e2fc87459931a7f3a2059.tar.gz
scala-c379973e4c78c931d90e2fc87459931a7f3a2059.tar.bz2
scala-c379973e4c78c931d90e2fc87459931a7f3a2059.zip
splitted BigDecimal class for Java 1.4
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/BigDecimal.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/BigDecimal.scala b/src/library/scala/BigDecimal.scala
index 263a830481..f104631469 100644
--- a/src/library/scala/BigDecimal.scala
+++ b/src/library/scala/BigDecimal.scala
@@ -86,10 +86,10 @@ object BigDecimal {
/** Implicit conversion from <code>Int</code> to <code>BigDecimal</code>. */
implicit def int2bigDecimal(i: Int): BigDecimal = apply(i)
- /** Implicit copnversion from <code>Long</code> to <code>BigDecimal</code>. */
+ /** Implicit conversion from <code>Long</code> to <code>BigDecimal</code>. */
implicit def long2bigDecimal(l: Long): BigDecimal = apply(l)
- /** Implicit copnversion from <code>Double</code> to <code>BigDecimal</code>. */
+ /** Implicit conversion from <code>Double</code> to <code>BigDecimal</code>. */
implicit def double2bigDecimal(d: Double): BigDecimal = apply(d)
/** Implicit conversion from BigDecimal to <code>Ordered</code>. */
@@ -113,7 +113,7 @@ class BigDecimal(val bigDecimal: BigDec) extends java.lang.Number {
/** Compares this BigDecimal with the specified value for equality.
*/
- override def equals (that: Any): Boolean = that match {
+ override def equals(that: Any): Boolean = that match {
case that: BigDecimal => this equals that
case that: java.lang.Double => this.bigDecimal.doubleValue == that.doubleValue
case that: java.lang.Float => this.bigDecimal.floatValue == that.floatValue
@@ -165,7 +165,7 @@ class BigDecimal(val bigDecimal: BigDec) extends java.lang.Number {
/** Division of BigDecimals
*/
def / (that: BigDecimal): BigDecimal =
- new BigDecimal(this.bigDecimal.divide(that.bigDecimal))
+ new BigDecimal(this.bigDecimal.divide(that.bigDecimal))
/** Returns the minimum of this and that
*/