Difference between revisions of "GetBiggestFloatIndex"

From scripting
Jump to: navigation, search
(Created page with " global proc int GetBiggestFloatIndex(float $FLArr[]) { //Author Nick Pisca 0001d 2008 float $KL[] = sort($FLArr); float $Biggest = $KL[(size($KL)-1)]; for($x=0;$x<size...")
 
(No difference)

Latest revision as of 05:39, 22 April 2017

global proc int GetBiggestFloatIndex(float $FLArr[]) {
//Author Nick Pisca 0001d 2008
	float $KL[] = sort($FLArr);
	float $Biggest = $KL[(size($KL)-1)];
	for($x=0;$x<size($KL);$x++) {
		if ($FLArr[$x] == $Biggest) {
			return $x;
		}
 	}	
}


More information on float arrays, read pages 10-16 in YSYT.