[TIB] Re: greatest integer??


[Prev][Next][Index][Thread]

[TIB] Re: greatest integer??




If you only want the value, you can use the max
function. ( max(L1), which will return the number
itself.)

I can't think of a quick was to find the element
number of it, though. You would need a For loop
probably, with an If inside that checks if the current
element is greater than the former greatest element.
Like this : 

1 -> Y
For(X,2,dim(L1
If L1(X) > L1(Y
X -> Y
End

Y will contain the position of the greatest integer.
You could also do a while loop until the current
element is equal to the max.
Hope that helps.

Jason R

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



References: