TFPPowerOperation class
Internally used class for power/exponentiation operations
Declaration
TFPPowerOperation = class(TMathOperation)Inheritance
- TFPPowerOperation
- TMathOperation
- TFPBinaryOperation
- TFPExprNode
- 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
Methods
Check | public | Validate the power operation for correctness |
AsString | public | Get string representation of power operation |
NodeType | public | Get the result type for power operations |
GetNodeValue | public | Calculate the result of power operation |
Inherited
From TFPBinaryOperation (8)
CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate
From TFPExprNode (3)
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
