This:
BigDecimal.valueOf(0.00)
becomes 0.0
I want it to be 0.00
What is the correct format pattern for that?
This:
BigDecimal.valueOf(0.00)
becomes 0.0
I want it to be 0.00
What is the correct format pattern for that?
Use the String constructor: new BigDecimal("0.00"). Using BigDecimal.valueOf(double) completely destroys any formatting you used to input the value.