示例#1
0
        private int Subtract(IExecutionContext context)
        {
            NumericOperand firstOperand  = NumericOperand.Create(context.GetResult(FirstOperandName));
            NumericOperand secondOperand = NumericOperand.Create(context.GetResult(SecondOperandName));

            return(firstOperand - secondOperand);
        }
示例#2
0
 public override int Subtract(NumericOperand operand2)
 {
     return Math.Sign(Value - ((LongCompareOperand)operand2).Value);
 }
示例#3
0
 public abstract int Subtract(NumericOperand operand2);
示例#4
0
 public override int Subtract(NumericOperand operand2)
 {
     return(Math.Sign(Value - ((DecimalCompareOperand)operand2).Value));
 }
示例#5
0
 public abstract int Subtract(NumericOperand operand2);
示例#6
0
 public override int Subtract(NumericOperand operand2)
 {
     return(Math.Sign((double)(Value - ((ULongCompareOperand)operand2).Value)));
 }