Source/Operations/BinaryOperations.cs
/// <summary>
/// Subtracts the right operand from the left operand
/// </summary>
/// <param name="leftOperand">The left operand</param>
/// <param name="rightOperand">The right operand</param>
/// <returns>The result of the operation</returns>
Subtracts the right operand from the left operand
Subtracts the right operand from the left operand
public static ExpressionResult Subtract(ExpressionResult leftOperand, ExpressionResult rightOperand)
		{
			return new ArithmeticExpressionResult(leftOperand, rightOperand)
			{
				Value = leftOperand.Value - rightOperand.Value,
				TermType = $"{leftOperand.TermType} - {rightOperand.TermType}"
			};
		}
public static ExpressionResult Subtract ( ExpressionResult leftOperand , ExpressionResult rightOperand ) { return new ArithmeticExpressionResult ( leftOperand , rightOperand ) { Value = leftOperand . Value - rightOperand . Value , TermType = $" { leftOperand . TermType }  -  { rightOperand . TermType } " } ; }
Subtracts the right operand from the left operand
Subtracts the right operand from the left operand
The result of the operation
The result of the operation
leftOperand
ExpressionResult
The left operand
The left operand
rightOperand
ExpressionResult
The right operand
The right operand