Class
UnaryMinusExpression

Expression that negates a numeric value, representing the unary minus operator (-).

Definition

Constructors

UnaryMinusExpression(RadExpression, Workbook)

Initializes a new unary minus expression that will negate the operand.

Declaration

cs-api-definition
public UnaryMinusExpression(RadExpression operand, Workbook workbook = null)

Parameters

operand

RadExpression

The operand.

workbook

Workbook

The workbook.

Properties

OperatorInfo

Gets the operator metadata for the unary minus operator.

Declaration

cs-api-definition
public override OperatorInfo OperatorInfo { get; }

Property Value

OperatorInfo

The operator info as OperatorInfo.

Overrides OperatorExpression.OperatorInfo

Methods

GetValueOverride(double)

Calculates the negation of the operand by multiplying by -1.

Declaration

cs-api-definition
protected override RadExpression GetValueOverride(double operand)

Parameters

operand

double

The operand as double.

Returns

RadExpression

Value as RadExpression.

Overrides UnaryOperatorExpression.GetValueOverride(double)