Bookmarks
2024
September
13
Comparing BigDecimals for Equality
Sep
13
2024
Comparing BigDecimals for Equality val bdy = 0.3.toBigDecimal() val bdx = 0.3.toBigDecimal() println(BigDecimal.ZERO.compareTo(bdy - bdx) == 0)