Sign in Join
FPDoc Onlineexperiment

SumInt function

In unit Math

Return the sum of an array of integers.

Declaration

pascal
function SumInt(const data: PInt64; const N: LongInt): 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.