I want to get the average of the numbers in my array. So how can I get those
values and turn them back into floats??

Code(I'm not sure if I used the right ones):

  ....

  for(x=0;x<=[storage count];x++){
            sumOfArray= sumOfArray+[NSNumber [storage objectAtIndex:x]];
//Problem here. I'm trying to get the float values in the Array.
   }

    averageOfArray=sumOfArray/[storage count];
    printf("Average: %f",averageOfArray);
    break;
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to