Sign in Join
FPDoc Onlineexperiment

TIntToCurrencyNode.GetNodeValue procedure

Member of TIntToCurrencyNodepublicIn unit fpExprPars

Convert integer value to currency

Declaration

pascal
procedure GetNodeValue(var Result: TFPExpressionResult); override

Arguments

Result

Returns the converted currency value

Description

The GetNodeValue method performs the actual conversion of an integer value to a currency value. It retrieves the integer value from the source node and converts it to the equivalent currency representation.

The conversion maintains the numeric value while applying currency-specific precision and formatting rules. The integer is treated as a whole currency unit (e.g., dollars, euros) with appropriate decimal handling.

The result is returned in a TFPExpressionResult structure with the result type set to rtCurrency and the converted value stored in the currency field.

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