Source/Operations/UnaryOperations.cs
/// <summary>
/// Negates the value of the operand
/// </summary>
/// <param name="operand">The operand to negate</param>
/// <returns>The result of the operation</returns>
Negates the value of the operand
Negates the value of the operand
public static ExpressionResult Negate(ExpressionResult operand)
		{
			return new ArithmeticExpressionResult(operand)
			{
				Value = -operand.Value,
				TermType = $"-{operand.TermType}"
			};
		}
public static ExpressionResult Negate ( ExpressionResult operand ) { return new ArithmeticExpressionResult ( operand ) { Value = - operand . Value , TermType = $" - { operand . TermType } " } ; }
Negates the value of the operand
Negates the value of the operand
The result of the operation
The result of the operation
operand
ExpressionResult
The operand to negate
The operand to negate