Sign in Join
FPDoc Onlineexperiment

TIntToCurrencyNode.NodeType function

Member of TIntToCurrencyNodepublicIn unit fpExprPars

Get the result type for integer to currency conversion

Declaration

pascal
function NodeType: TResultType; override

Function result

Returns currency as the result type

Description

The NodeType method returns rtCurrency to indicate that this conversion node produces currency results. It overrides the base class method to provide type-specific result type information.

The method enables the expression parser to properly identify currency operations and apply appropriate formatting, precision, and arithmetic rules for currency calculations.

This type information is crucial for maintaining proper currency handling throughout complex expressions involving mixed numeric types.

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