News

Like other Number subclasses in the Java platform, BigDecimal is immutable, so if you call setScale(), you must “save” the return value: d = d.setScale(2, RoundingMode.HALF_UP); ...