I have a BiGDecimal price , and I need to check if it is in a certain range. For example, there must be 3 conditions:
if (price >= 0 and price <=500) { .... } else if (price >=500 && price <=1000) { .... } else if (price > 1000) { .... }
How to do it right using the BigDecimal type.
java bigdecimal
user3127896
source share