diff options
Diffstat (limited to 'src/library/scala/math/BigDecimal.scala')
-rw-r--r-- | src/library/scala/math/BigDecimal.scala | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/library/scala/math/BigDecimal.scala b/src/library/scala/math/BigDecimal.scala index 677dfa7e17..c379b83abf 100644 --- a/src/library/scala/math/BigDecimal.scala +++ b/src/library/scala/math/BigDecimal.scala @@ -14,19 +14,6 @@ import java.{ lang => jl } import java.math.{ MathContext, BigDecimal => BigDec } import scala.collection.immutable.NumericRange -/** Conversions which present a consistent conversion interface - * across all the numeric types. - */ -trait ScalaNumericConversions extends jl.Number { - def toChar = intValue.toChar - def toByte = byteValue - def toShort = shortValue - def toInt = intValue - def toLong = longValue - def toFloat = floatValue - def toDouble = doubleValue -} - /** * @author Stephane Micheloud * @version 1.0 @@ -164,7 +151,7 @@ object BigDecimal class BigDecimal( val bigDecimal: BigDec, val mc: MathContext) -extends jl.Number with ScalaNumericConversions +extends ScalaNumber with ScalaNumericConversions { def this(bigDecimal: BigDec) = this(bigDecimal, BigDecimal.defaultMathContext) import BigDecimal.RoundingMode._ |