Sign in Join
FPDoc Onlineexperiment

TFPNegateOperation.GetNodeValue procedure

Member of TFPNegateOperationpublicIn unit fpExprPars

Calculate the negated value

Declaration

pascal
procedure GetNodeValue(var Result: TFPExpressionResult); override

Arguments

Result

Returns the negated result

Description

The GetNodeValue method performs the numeric negation by evaluating the operand and changing its sign. It multiplies the operand's value by -1, effectively converting positive values to negative and negative values to positive.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.