I've been picking apart a piece of code for a few hours now, can't seem to get this quite right.
* I have an array full of floats in a variable
* I would like to take that array and add all values in the array together, and spit that out into another variable
Example Array data: [0.55, 0.25]
What I want from that: 1 variable: 0.80
The array can grow/shrink and I have no way of knowing how big it is at the time of calculation.
Thanks in advance!
* I have an array full of floats in a variable
* I would like to take that array and add all values in the array together, and spit that out into another variable
Example Array data: [0.55, 0.25]
What I want from that: 1 variable: 0.80
The array can grow/shrink and I have no way of knowing how big it is at the time of calculation.
Thanks in advance!