need help with BigDecimal rounding
Hey, I'm trying to round a BigDecimal, but it doesn't seem to be working? I'm not sure if I'm doing it wrong or not.
judging by the docs https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/RoundingMode.html#DOWN I was expecting the amount to be
2
, but instead it's 2.18
2 Replies