abs method
Returns the absolute value of this BigDecimal.
Implementation
BigDecimal abs() {
return _unscaledValue.isNegative
? BigDecimal._(-_unscaledValue, _scale)
: this;
}
Returns the absolute value of this BigDecimal.
BigDecimal abs() {
return _unscaledValue.isNegative
? BigDecimal._(-_unscaledValue, _scale)
: this;
}