method

abs

abs()
public

Returns the absolute value.

BigDecimal(‘5’).abs -> 5

BigDecimal(‘-3’).abs -> 3