Sign in Join
FPDoc Onlineexperiment

TFPDivideOperation class

In unit fpExprPars

Internally used class for division operations

Declaration

pascal
TFPDivideOperation = class(TMathOperation)

Inheritance

  1. TFPDivideOperation
  2. TMathOperation
  3. TFPBinaryOperation
  4. TFPExprNode
  5. TObject

Description

The TFPDivideOperation class implements division operations between two numeric operands, handling division by zero checks and type conversion for integers, floats, and currency values.

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

CheckpublicValidate the division operation for correctness
AsStringpublicGet string representation of division operation
NodeTypepublicGet the result type for division operations
GetNodeValuepublicCalculate the result of division operation

Inherited

From TFPBinaryOperation (8)

CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate

From TFPExprNode (3)

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.