Validate the mathematical operation for correctness
Source position: fpexprpars.pp line 301
public procedure TMathOperation.Check; override; |
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.