You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a little help understanding this library. My current understanding is that the default settings have unlimited precision. However, this code fails:
var bignum =0.1.toBigDecimal(decimalMode =DecimalMode.DEFAULT)
bignum *=2
bignum.doubleValue(exactRequired =false) shouldBe 0.2
io.kotest.assertions.AssertionFailedError: expected:<0.2> but was:<0.0>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need a little help understanding this library. My current understanding is that the default settings have unlimited precision. However, this code fails:
Beta Was this translation helpful? Give feedback.
All reactions