Good evening:
I am having a problem rounding numbers with 3 or more decimals.
I have for example this number: 1544.565
And I am trying to round it to 1544.57
I have tried:
BigDecimal.ROUND_HALF_EVEN
BigDecimal.ROUND_UP
RoundingMode.HALF_EVEN
RoundingMode.HALF_UP
RoundingMode.CEILING
RoundingMode.UP
And all of them gave me the same wrong result: 1544.56 I am trying to obtain 1544.57
Any solutions please?