コード例 #1
0
        public override Number multiple(Number otherNumber)
        {
            if (otherNumber.precedence() > precedence()) return otherNumber.multiple(this);

            double other = getOther(otherNumber);

            return new RadianNumber(modulateRadians(value + other));
        }
コード例 #2
0
        public override Number multiple(Number otherNumber)
        {
            if (otherNumber.precedence() > precedence()) return otherNumber.multiple(this);

            double other = getOther(otherNumber);

            return new DoubleNumber(value + other);
        }