Rounding BigDecimal to *always* have two decimal places Rounding BigDecimal to *always* have two decimal places java java

Rounding BigDecimal to *always* have two decimal places


value = value.setScale(2, RoundingMode.CEILING)