Sign in Join
FPDoc Onlineexperiment

TFPPowerOperation.Check procedure

Member of TFPPowerOperationpublicIn unit fpExprPars

Validate the power operation for correctness

Declaration

pascal
procedure Check; override

Description

The Check method validates that the power operation can be performed safely on the provided base and exponent operands. It checks for mathematically invalid operations such as negative bases with fractional exponents.

The validation also ensures that both operands are of compatible numeric types and that the operation will not result in overflow or underflow conditions that could produce invalid results.

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