MATHLIB Subroutine
Return the sum of values in a float array.
call SUM(ARRAY_FV, SUM_FV)
ARRAY_FV
A floating point array identifier.
SUM_FV
The name of a floating point variable to hold the result of the subroutine.
Description
Use this subroutine to return the sum of all values in the array.
Example
include mathlib.inc
float FloatArray_FV[3,2] is 2.7, 7.1,
4.23, 41.14,
0.0, 87.9
float FResult_FV
action Addit is
call SUM(FloatArray_FV, FResult_FV)
send "SUM of FloatArray is " FResult_FV "\n" to errorlog
response to Add_GR
action Addit