summaryrefslogtreecommitdiff
path: root/src/library/scala/math/BigDecimal.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-29 08:25:26 -0700
committerPaul Phillips <paulp@improving.org>2012-08-29 10:20:43 -0700
commitd3f879a6b0165310bb756b811ea3f97685533948 (patch)
tree759f4ff95bc81c10a654d4f6d4c5c9d3ce82cbce /src/library/scala/math/BigDecimal.scala
parente03a5b766be27a1f43c9151a611b04519a2b15df (diff)
downloadscala-d3f879a6b0165310bb756b811ea3f97685533948.tar.gz
scala-d3f879a6b0165310bb756b811ea3f97685533948.tar.bz2
scala-d3f879a6b0165310bb756b811ea3f97685533948.zip
Expanded the reach of value classes.
Now extending AnyVal: - RichInt, RichDouble, etc. - ArrayOps.ofRef, ofBoolean, etc - StringAdd - StringFormat The rest of it is the changes necessary to enable those.
Diffstat (limited to 'src/library/scala/math/BigDecimal.scala')
-rw-r--r--src/library/scala/math/BigDecimal.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/math/BigDecimal.scala b/src/library/scala/math/BigDecimal.scala
index 74daa510ca..8669b2e2e8 100644
--- a/src/library/scala/math/BigDecimal.scala
+++ b/src/library/scala/math/BigDecimal.scala
@@ -211,7 +211,7 @@ extends ScalaNumber with ScalaNumericConversions with Serializable {
catch { case _: ArithmeticException => false }
}
- protected[math] def isWhole = (this remainder 1) == BigDecimal(0)
+ def isWhole() = (this remainder 1) == BigDecimal(0)
def underlying = bigDecimal
/** Compares this BigDecimal with the specified BigDecimal for equality.