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

TMathOperation.NodeType

Get the result type for mathematical operations

Declaration

Source position: fpexprpars.pp line 302

public function TMathOperation.NodeType: TResultType; override;

Function result

Returns the result type of the math operation

Description

The NodeType method determines the data type that will be produced by the mathematical operation. The result type is calculated based on the types of the operands and follows standard type promotion rules.

For example, operations between integers produce integer results, but operations involving floats promote the result to float type to maintain precision. Currency operations maintain currency type where appropriate.


Documentation generated on: Dec 15 2025