Skip to content

TFPPowerOperation.NodeType

Get the result type for power operations

Declaration

Source position: fpexprpars.pp line 358

public 
function TFPPowerOperation.NodeType : TResultType;  override;

Description

The NodeType method determines the data type that will be produced by the power operation. Power operations typically promote the result to a floating-point type to handle fractional results and maintain mathematical precision.

The result type is usually float regardless of the input operand types, since exponentiation often produces non-integer results even when both operands are integers.