You are viewing articles in the Math category &rarr


How to Get the Largest Number From an Array

Posted December 15th @ 7:37 am by m3Rlin

Sometimes you have to get the largest number out of hundreds of others. This is the simplest way to find it:

{ You can easily modify this function to accept other numerical types }
function MaxInteger(const aInt: array of Integer): Integer;
var
iI: Integer;
begin
[...]

Next Entries »