Skip to content

TIntToCurrencyNode

Internally used class for converting integer to currency

Declaration

Source position: fpexprpars.pp line 440

type

  TIntToCurrencyNode = class(TIntConvertNode)
  public
    function NodeType : TResultType;
    procedure GetNodeValue;
  end;

Description

This conversion node class handles the automatic conversion of integer values to currency values in expressions. It extends the base conversion functionality to provide integer-to-currency specific conversion logic.

The class is used internally by the expression parser when type coercion is needed to make integer values compatible with currency operations. The conversion treats the integer as a currency amount with appropriate decimal precision.

This conversion is useful in financial calculations where integer values need to be combined with currency values while maintaining proper decimal precision and formatting.

Methods

Member Visibility Description
GetNodeValue public Convert integer value to currency
NodeType public Get the result type for integer to currency conversion
See all Methods

See also

Name Description
TFPExprNode Class for representing nodes in expression trees