Esempio n. 1
0
        public override Number difference(Number otherNumber)
        {
            if (otherNumber.precedence() > precedence()) return otherNumber.difference(this);

            double other = getOther(otherNumber);

            return new RadianNumber(modulateRadians(value - other));
        }
Esempio n. 2
0
        public override Number difference(Number otherNumber)
        {
            if (otherNumber.precedence() > precedence()) return otherNumber.difference(this);

            double other = getOther(otherNumber);

            return new DoubleNumber(value - other);
        }