Sign in Join
FPDoc Onlineexperiment

TMathOperation.Check procedure

Member of TMathOperationpublicIn unit fpExprPars

Validate the mathematical operation for correctness

Declaration

pascal
procedure Check; override

Description

The Check method validates that the mathematical operation can be performed safely on the provided operands. It checks that both operands are of compatible numeric types and that the operation is mathematically valid.

The validation includes type compatibility checking and ensures that operations like division by zero or other mathematically undefined operations are detected before evaluation attempts.

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