How do I convert a scala.math.BigDecimal to java.math.BigDecimal?
No need to double-convert to and from string.
val sb = scala.math.BigDecimal(12345) val jb = sb.bigDecimal scala.math.BigDecimal is just a very simple wrapper around java.math.BigDecimal, and it provides wrapped value as one of fields.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With