BigDecimal not allow 3 houses after comma

1

Personal I'm doing a split between 2 BigDecimal and I need the system does not allow 3 houses after the comma. I have a full value and need to divide by the amount reported by the user. if you give it to your houses after the comma, it means that it works, if you give 3 houses it means that the user fill in the wrong value, can you do this validation when dividing using BigDecimal?

    
asked by anonymous 11.12.2015 / 18:35

1 answer

0

Conforms techies help to get the amount of house after the comma using bigDecimal.scale ()

    
14.12.2015 / 14:55