diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/BigDecimal.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/BigDecimal.scala b/src/library/scala/BigDecimal.scala index 0203a6022a..a5faf979e1 100644 --- a/src/library/scala/BigDecimal.scala +++ b/src/library/scala/BigDecimal.scala @@ -60,7 +60,7 @@ object BigDecimal { * @return the constructed <code>BigDecimal</code> */ def apply(d: Double): BigDecimal = - new BigDecimal(new BigDec(d)) + new BigDecimal(BigDec.valueOf(d)) /** Translates a character array representation of a <code>BigDecimal</code> * into a <code>BigDecimal</code>. |