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