Unit 'Math' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#rtl]

SumInt

Return the sum of an array of integers.

Declaration

Source position: math.pp line 654

function SumInt(

  const data: PInt64;

  const N: LongInt

):Int64;

function SumInt(

  const data: array of Int64

):Int64;

function SumInt(

  const data: PInteger;

  const N: LongInt

):Int64;

function SumInt(

  const data: array of Integer

):Int64;

Description

SumInt returns the sum of the N integers in the Data array, where this can be an open array or a pointer to an array.

Errors

An overflow may occur.


Documentation generated on: Dec 26 2024