I need to return Min and Max Values of two Integers in most situations in my Pascal Script. But every time I need to create a TStringList
and convert it to an Array Of String
and then get its Min and Max Values.
I like to have two functions like Min
and Max
to make this easier like Unit Math
in Delphi.
For Example,
Log(IntToStr(Min(1000, 26)))
Output should be 26
.
Log(IntToStr(Max(45, 1989)))
Output should be 1989.
Thanks in Advance.