SyntaxFix
Write A Post
Hire A Developer
Questions
Try this code ...
Integer perc = 5; BigDecimal spread = BigDecimal.ZERO; BigDecimal perc = spread.setScale(perc,BigDecimal.ROUND_HALF_UP); System.out.println(perc);
Result: 0.00000