View Single Post
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Mar 8, 2013, 01:11 PM
Jerrythabest is offline
Reply With Quote
Isn't it easier to write a min() function that takes an array as its argument? Then you could just do this (untested code, have never worked with AS arrays myself):
Code:
double min(array<double> &arr){
  arr.sortAsc();
  return arr[0];
}
__________________