To properly display this page you need a browser with JavaScript support.
HTBasic Help
×
Menu
Index
Search
Search
Reference
HTBasic Keywords
SUM - Returns the sum of all elements in a numeric array.
Previous page
Next page
Print version
(c) TransEra Corp, 2021
To properly display this page you need a browser with JavaScript support.
SUM
Returns the sum of all elements in a numeric array.
SUM( numeric-array )
Usage:
S1=SUM(A2)
PRINT SUM(Array)
Example:
SUM.BAS
Description:
If the array has type
REAL
, then
SUM
returns a
REAL
value. If the array has type
INTEGER
, then
SUM
returns an
INTEGER
value and the possibility of
INTEGER
overflow exists during the summing of an array.
See Also:
CSUM
,
RSUM