PureBytes Links
Trading Reference Links
|
A regular "bubble sort" would start you off, along the lines of the
following pseudo-code:
n=1;
Smallest = maxlist(1.0,Array[1]);
for n=1 to ArraySize begin
if Array[n]>1.0 then begin
Smallest=minlist(Smallest,Array[n]);
end;
n=n+1;
loop;
Or something like that. I might not have the right syntax - I get mixed up
what's ELA & what's VB.
Rus
-----Original Message-----
From: Andrew <andrew@xxxxxxxxx>
To: List, Code <code-list@xxxxxxxxxxxxx>; Omega List <omega-list@xxxxxxxxxx>
Date: 01 February 1999 19:27
Subject: EL Question
>If I have an array of values and I want to find the smallest value of
>all these values which is also greater than 1.0 how would I code that?
>
>In the event that no values were greater than 1.0 I would want to
>default to the last one.
>
>Any and all help is greatly appreciated. Thanks.
>
>Andrew
>
>
|