Declaration¶
Source position: fpexprpars.pp line 401
type
TIntToFloatNode = class(TIntConvertNode)
public
function NodeType : TResultType;
procedure GetNodeValue;
end;
Description¶
The TIntToFloatNode conversion node class handles the automatic conversion of integer values to floating-point values in expressions. It extends the base conversion functionality to provide integer-to-float specific conversion logic.
The class is used internally by the expression parser when type coercion is needed to make integer values compatible with operations that require floating-point operands. The conversion preserves the numeric value while changing the data type representation.
This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| GetNodeValue | public | Internally used convert integer value to float |
| NodeType | public | Get the result type for integer to float conversion |
See also¶
| Name | Description |
|---|---|
| TFPExprNode | Class for representing nodes in expression trees |