Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPPowerOperation.Check

Validate the power operation for correctness

Declaration

Source position: fpexprpars.pp line 356

public procedure TFPPowerOperation.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.


Documentation generated on: Dec 15 2025