I don’t know Scala, but in Java new BigDecimal(1.1)
initializes the BigDecimal
with a double
value and thus it is not exactly equal to 1.1. In Java you have to use new BigDecimal("1.1")
instead. Maybe that will help in Scala as well.
I don’t know Scala, but in Java new BigDecimal(1.1)
initializes the BigDecimal
with a double
value and thus it is not exactly equal to 1.1. In Java you have to use new BigDecimal("1.1")
instead. Maybe that will help in Scala as well.