-
I need help Manipulating an array
I have an array declare on my main time line named W_time in it i have several numbers.
now what i want to do is add this numbers in the array together so i can have a sum, then i want to find the average for this numbers, am usint this code to find it, but it returns NaN....
for(i = 0; i < 10; i++){
sum += W_time[i];
}
myAverage = sum / 10;
does this work or is there another way to add an array. Pls help.......
Last edited by flash_ee2; 02-19-2005 at 04:56 PM.
Post no bills
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|