How to find the smallest number in an array ?
#9

Quote:
Originally Posted by Jayse
Посмотреть сообщение
I know you fixed it already, but I would like to share this for anyone who's looking for a function like this (not expecting anything)

PHP код:
returnLowestValuearr[ ], len ) {
    new 
val 0x7FFFFFFF;
    for( new 
ilen++ ) if( arr] < val val arr];
    return 
val;

I'll take a note of it, thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)