TFPNegateOperation.GetNodeValue¶
Calculate the negated value
Declaration¶
Source position: fpexprpars.pp line 466
public
procedure TFPNegateOperation.GetNodeValue
(var Result: TFPExpressionResult)
; override;
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.