selfSubtract method

DD selfSubtract(
  1. double y
)

Subtracts the argument from the value of this. To prevent altering constants, this method must only be used on values known to be newly created.

@param y the addend @return this object, decreased by y

Implementation

DD selfSubtract(double y) {
  if (isNaN()) return this;
  return selfAddHiLo(-y, 0.0);
}