Can BigDecimal have negative values?
Can BigDecimal have negative values? The value of the BigDecimal is (BigInteger/10**scale). A negative scale will result in a NumberFormatException. How do I set negative BigDecimal? negate() method returns a BigDecimal whose value is the negated value of the BigDecimal with which it is used. Syntax: Parameters: The method does not take any parameters . […]