by tedunangst · 15y ago · 0 comments
return base.scaleByPowerOfTen(exponent).doubleValue();In any case, for the original value and variations I tested, the workaround does function properly.
scala> val y y: java.math.BigDecimal = 2.2250738585072012E-308
scala> y.doubleValue() Hangs
This is one of those “harder than it looks” problems.
I updated the post, and I'm looking for new alternatives now.
http://en.wikipedia.org/wiki/Floating_point#Accuracy_problem...