HTBasic Help
×
Menu
Index

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: