Sign in Join
FPDoc Onlineexperiment

TFPNegateOperation.Check procedure

Member of TFPNegateOperationpublicIn unit fpExprPars

Validate the negation operation for correctness

Declaration

pascal
procedure Check; override

Description

The Check method validates that the operand of the negation operation is a numeric type suitable for negation. It ensures type compatibility and prevents attempts to negate non-numeric values.

The validation process checks that the operand is of a numeric type (integer, float, or currency) that supports negation operations.

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