Sign in Join
FPDoc Onlineexperiment

TFPNegateOperation.NodeType function

Member of TFPNegateOperationpublicIn unit fpExprPars

Get the result type for negation operations

Declaration

pascal
function NodeType: TResultType; override

Function result

Returns the result type of the negation

Description

The NodeType method returns the result type for negation operations, which typically matches the type of the operand. The result preserves the numeric type of the input (integer, float, or currency) to maintain type consistency.

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