abs method

Quantity abs()

Implementation

Quantity abs() {
  if (value.isNegative) {
    return -this;
  }
  return this;
}