public override Number difference(Number otherNumber) { if (otherNumber.precedence() > precedence()) return otherNumber.difference(this); double other = getOther(otherNumber); return new RadianNumber(modulateRadians(value - other)); }
public override Number difference(Number otherNumber) { if (otherNumber.precedence() > precedence()) return otherNumber.difference(this); double other = getOther(otherNumber); return new DoubleNumber(value - other); }