Java BigDecimal divide and multiply and round to 2 decimals

后端 未结 0 1866
清酒与你
清酒与你 2020-12-02 05:18

I have a Java BigDecimal expression like below:

(totalPrep.divide(totalCase, 2, BigDecimal.ROUND_HALF_UP)).multiply(new BigDecimal(100))

wher

相关标签:
回答
  • 消灭零回复
提交回复
热议问题