CFScript Math expression - Summing up looped over data
If I loop over numeric data and I want to sum that data I am looking for the correct manner to do so. Of course I want to do this in cfscript.
I know that I could go the route of doing a one demensional array and using the array sum function and I could also use stauctures.
I am interested in different solutions to this problem.
My end state is that I need to sum and average looped dynamic data for reporting purposes.
For purposes of example static values will be helpful for better understanding.
Thanks in advance.
