Sign in Join
FPDoc Onlineexperiment

TIntToFloatNode class

In unit fpExprPars

Internally used class for converting integer to float

Declaration

pascal
TIntToFloatNode = class(TIntConvertNode)

Inheritance

  1. TIntToFloatNode
  2. TIntConvertNode
  3. TFPConvertNode
  4. TFPUnaryOperator
  5. TFPExprNode
  6. TObject

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.

See also

Methods

NodeTypepublicGet the result type for integer to float conversion
GetNodeValuepublicInternally used convert integer value to float

Inherited

From TIntConvertNode (1)

Check

From TFPUnaryOperator (6)

Create Destroy HasAggregate InitAggregate Operand UpdateAggregate

From TFPExprNode (4)

AsString CheckNodeType IsAggregate NodeValue

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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