[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Internally used class for subtraction operations
Source position: fpexprpars.pp line 316
type TFPSubtractOperation = class(TMathOperation) |
||
public |
||
procedure Check; override; |
|
Validate the subtraction operation for correctness |
procedure GetNodeValue(); override; |
|
Calculate the result of subtraction operation |
function AsString; override; |
|
Get string representation of subtraction operation |
end; |
|
Internally used class for subtraction operations |
|
| | | ||
|
Internally used class for mathematical operations in expressions |
|
| | | ||
|
Internally used class for binary operations with left and right operands |
|
| | | ||
|
Class for representing nodes in expression trees |
|
| | | ||
The TFPSubtractOperation class implements the subtraction operation between two numeric operands. It extends the binary operation framework to provide subtraction-specific functionality for integers, floats, and currency values.
The operation handles type conversion automatically when operands have different numeric types, promoting the result to the more precise type as needed. The result type follows standard numeric promotion rules.
The subtraction operation computes the difference between the left operand (minuend) and the right operand (subtrahend), returning left - right.
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.
|
Class for representing nodes in expression trees |