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];
}
__________________
|