RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Sum Function

Returns the sum of the elements in an array.

Pascal
function Sum(const Data: array of Double): Extended;
C++
Extended Sum(const array of Double Data);

Sum returns the sum of all the values in the Data array parameter. In C++, the Data_Size parameter specifies the index of the last value in Data (one less than the number of values). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!