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