diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-05-18 21:45:40 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-05-18 21:45:40 +0000 |
commit | e0c2758ed3c1bfb97047e9361de1f495f41e4804 (patch) | |
tree | 1946472e39e1abeeb59cdeb1d0f17533e4d69aea /src/library/scala/math/BigDecimal.scala | |
parent | da8253c2e07a8e461c1ece23e68fb2b72a638dd2 (diff) | |
download | scala-e0c2758ed3c1bfb97047e9361de1f495f41e4804.tar.gz scala-e0c2758ed3c1bfb97047e9361de1f495f41e4804.tar.bz2 scala-e0c2758ed3c1bfb97047e9361de1f495f41e4804.zip |
Fixes #3445. no review
Diffstat (limited to 'src/library/scala/math/BigDecimal.scala')
-rw-r--r-- | src/library/scala/math/BigDecimal.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library/scala/math/BigDecimal.scala b/src/library/scala/math/BigDecimal.scala index 363c669750..90ad43fe7f 100644 --- a/src/library/scala/math/BigDecimal.scala +++ b/src/library/scala/math/BigDecimal.scala @@ -13,6 +13,8 @@ import java.{ lang => jl } import java.math.{ MathContext, BigDecimal => BigDec } import scala.collection.immutable.NumericRange +import annotation.migration + /** * @author Stephane Micheloud * @version 1.0 @@ -247,8 +249,13 @@ extends ScalaNumber with ScalaNumericConversions /** Remainder after dividing this by that. */ + @migration(2, 8, "As of 2.8, the prefered way to calculate division remainder is to use method `%`.") def remainder (that: BigDecimal): BigDecimal = this.bigDecimal.remainder(that.bigDecimal, mc) + /** Remainder after dividing this by that. + */ + def % (that: BigDecimal): BigDecimal = this.bigDecimal.remainder(that.bigDecimal, mc) + /** Returns a BigDecimal whose value is this ** n. */ def pow (n: Int): BigDecimal = this.bigDecimal.pow(n, mc) |