/** * Returns the sum of this DoubleValue and the given ParticularDoubleValue. */ public DoubleValue add(ParticularDoubleValue other) { return add((SpecificDoubleValue)other); }
/** * Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is * less than, equal to, or greater than the given SpecificDoubleValue, * respectively. */ public IntegerValue compare(SpecificDoubleValue other) { return compare((DoubleValue)other); }
public IntegerValue compare(DoubleValue other) { return other.compareReverse(this); }
stack.push(stack.dpop().add(stack.dpop())); break; stack.push(stack.dpop().subtractFrom(stack.dpop())); break; stack.push(stack.dpop().multiply(stack.dpop())); break; stack.push(stack.dpop().divideOf(stack.dpop())); break; stack.push(stack.dpop().remainderOf(stack.dpop())); break; stack.push(stack.dpop().negate()); break; stack.push(stack.dpop().convertToInteger()); break; stack.push(stack.dpop().convertToLong()); break; stack.push(stack.dpop().convertToFloat()); break; DoubleValue doubleValue1 = stack.dpop(); DoubleValue doubleValue2 = stack.dpop();
/** * Returns the quotient of the given ParticularDoubleValue and this * DoubleValue. */ public DoubleValue divideOf(ParticularDoubleValue other) { return divideOf((SpecificDoubleValue)other); }
/** * Returns the quotient of this DoubleValue and the given SpecificDoubleValue. */ public DoubleValue divide(SpecificDoubleValue other) { return divide((DoubleValue)other); }
/** * Returns the product of this DoubleValue and the given ParticularDoubleValue. */ public DoubleValue multiply(ParticularDoubleValue other) { return multiply((SpecificDoubleValue)other); }
/** * Returns the generalization of this DoubleValue and the given other * SpecificDoubleValue. */ public DoubleValue generalize(SpecificDoubleValue other) { return generalize((DoubleValue)other); }
stack.push(stack.dpop().add(stack.dpop())); break; stack.push(stack.dpop().subtractFrom(stack.dpop())); break; stack.push(stack.dpop().multiply(stack.dpop())); break; stack.push(stack.dpop().divideOf(stack.dpop())); break; stack.push(stack.dpop().remainderOf(stack.dpop())); break; stack.push(stack.dpop().negate()); break; stack.push(stack.dpop().convertToInteger()); break; stack.push(stack.dpop().convertToLong()); break; stack.push(stack.dpop().convertToFloat()); break; DoubleValue doubleValue1 = stack.dpop(); DoubleValue doubleValue2 = stack.dpop();
/** * Returns the quotient of the given ParticularDoubleValue and this * DoubleValue. */ public DoubleValue divideOf(ParticularDoubleValue other) { return divideOf((SpecificDoubleValue)other); }
/** * Returns the quotient of this DoubleValue and the given ParticularDoubleValue. */ public DoubleValue divide(ParticularDoubleValue other) { return divide((SpecificDoubleValue)other); }
/** * Returns the product of this DoubleValue and the given SpecificDoubleValue. */ public DoubleValue multiply(SpecificDoubleValue other) { return multiply((DoubleValue)other); }
/** * Returns the generalization of this DoubleValue and the given other * ParticularDoubleValue. */ public DoubleValue generalize(ParticularDoubleValue other) { return generalize((SpecificDoubleValue)other); }
stack.push(stack.dpop().add(stack.dpop())); break; stack.push(stack.dpop().subtractFrom(stack.dpop())); break; stack.push(stack.dpop().multiply(stack.dpop())); break; stack.push(stack.dpop().divideOf(stack.dpop())); break; stack.push(stack.dpop().remainderOf(stack.dpop())); break; stack.push(stack.dpop().negate()); break; stack.push(stack.dpop().convertToInteger()); break; stack.push(stack.dpop().convertToLong()); break; stack.push(stack.dpop().convertToFloat()); break; DoubleValue doubleValue1 = stack.dpop(); DoubleValue doubleValue2 = stack.dpop();
/** * Returns the quotient of the given SpecificDoubleValue and this * DoubleValue. */ public DoubleValue divideOf(SpecificDoubleValue other) { return divideOf((DoubleValue)other); }
/** * Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is * less than, equal to, or greater than the given ParticularDoubleValue, * respectively. */ public IntegerValue compare(ParticularDoubleValue other) { return compare((SpecificDoubleValue)other); }
public DoubleValue add(DoubleValue other) { // Careful: -0.0 + 0.0 == 0.0 //return value == 0.0 ? other : other.add(this); return other.add(this); }
public DoubleValue divideOf(DoubleValue other) { return other.divide(this); }
/** * Returns the product of this DoubleValue and the given ParticularDoubleValue. */ public DoubleValue multiply(ParticularDoubleValue other) { return multiply((SpecificDoubleValue)other); }
/** * Returns the generalization of this DoubleValue and the given other * SpecificDoubleValue. */ public DoubleValue generalize(SpecificDoubleValue other) { return generalize((DoubleValue)other); }