Get the result type for mathematical operations
Source position: fpexprpars.pp line 302
public function TMathOperation.NodeType: TResultType; override; |
Returns the result type of the math operation
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.