Sign in Join
FPDoc Onlineexperiment

TFPPowerOperation.NodeType function

Member of TFPPowerOperationpublicIn unit fpExprPars

Get the result type for power operations

Declaration

pascal
function NodeType: TResultType; override

Function result

Returns the result type of the power

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.