Show: Delphi C++
Display Preferences

System.Math.Sum

From XE2 API Documentation
Jump to: navigation, search

Delphi

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 PACKAGE float __fastcall Sum(float const *Data, const int Data_Size)/* 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

Personal tools
Previous Versions
Translations