TFPPowerOperation.NodeType function
Get the result type for power operations
Declaration
function NodeType: TResultType; overrideFunction 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.
