Update sum aggregate with new value
Source position: fpexprpars.pp line 680
public procedure TAggregateSum.UpdateAggregate; override; |
The UpdateAggregate method adds a new value to the running sum during the aggregation process. It handles the addition of different numeric types while maintaining appropriate precision and type compatibility.
The method performs type conversion as needed using the ConvertArgument method, then adds the converted value to the internal accumulator. It ensures that the sum calculation maintains the appropriate result type throughout the process.
Each call to this method processes one value from the aggregation sequence and updates the internal sum state accordingly.