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

TFPPowerOperation

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Internally used class for power/exponentiation operations

Declaration

Source position: fpexprpars.pp line 354

type TFPPowerOperation = class(TMathOperation)

public

  procedure Check; override;

  

Validate the power operation for correctness

  function AsString; override;

  

Get string representation of power operation

  function NodeType; override;

  

Get the result type for power operations

  procedure GetNodeValue(); override;

  

Calculate the result of power operation

end;

Inheritance

TFPPowerOperation

  

Internally used class for power/exponentiation operations

|

TMathOperation

  

Internally used class for mathematical operations in expressions

|

TFPBinaryOperation

  

Internally used class for binary operations with left and right operands

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

Description

The TFPPowerOperation class implements the power (exponentiation) operation for raising one numeric value to the power of another. It extends the mathematical operation framework to provide exponentiation functionality with proper type handling.

The power operation supports integer, float, and currency operands, automatically promoting the result type to ensure sufficient precision. The operation follows standard mathematical rules for exponentiation including handling of negative bases and fractional exponents.

This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025