I have this BigDecimal number - 68.65121847597993
and I want to round it like this - 68.7
, so only decimical part of number would be rounded up, but not the whole number.
I tried to use RoundingMode.HALF_UP but it rounds up the whole number as well. Is there a way to round up only decimical part of number using java?