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

TFPPowerOperation.NodeType

Get the result type for power operations

Declaration

Source position: fpexprpars.pp line 358

public function TFPPowerOperation.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.


Documentation generated on: Dec 15 2025