public class Subtraction extends BinaryExpression
myLeft, myRight, mySymbolgelementsToValue| Constructor and Description |
|---|
Subtraction(ArithmeticBase lhs,
ArithmeticBase rhs)
Represents a subtraction
|
| Modifier and Type | Method and Description |
|---|---|
double |
value(Context c) |
leftValue, rightValue, toStringevaluatepublic Subtraction(ArithmeticBase lhs, ArithmeticBase rhs)
lhs - the left-hand side of the subtraction (before the -)rhs - the right-hand side of the addition (after the -)public double value(Context c)
value in class ArithmeticInstruction