method

abs

abs()
public

Returns the absolute value, as a BigDecimal.

BigDecimal('5').abs  #=> 0.5e1
BigDecimal('-3').abs #=> 0.3e1