Convert integer value to currency
Source position: fpexprpars.pp line 412
public procedure TIntToCurrencyNode.GetNodeValue( |
var Result: TFPExpressionResult |
); override; |
Result |
|
Returns the converted currency value |
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.