Java BigDecimal.abs() is a method in the Java BigDecimal class that returns the absolute value of the BigDecimal. This is useful in scenarios where only the magnitude of a number is relevant, such as in financial or mathematical applications. Introduced in Java 2004 with Java 5, abs() ensures that operations requiring non-negative values can be handled cleanly.
https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html