summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/math/BigDecimal.scala7
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)