System.Math.Sum

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SUM(const Data: array of Single): Single;
function SUM(const Data: array of Double): Double;
function SUM(const Data: array of Extended): Extended;

C++

extern DELPHI_PACKAGE float __fastcall Sum(float const *Data, const int Data_High)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Returns the sum of the elements in an array.

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).

See Also