"array.min" function not giving correct output


#1

I have currently 5 records and i am trying to find minimum earlier it was working but as the sequence changed it is not giving correct output.
My records
54060
54060
54060
86030
141870

i am using for each row
INVOKE method
Target type=null
Targetobject=list
Method name=Add

Assign
arrayt=list.ToArray

messagebox---->arrayt.Min.ToString

it is giving me the output 141870

and when using arrayt.Max.ToString it giving me 86030
can anyone tell me where i am doing wrong

Regards
Nara


#2

Looks like it’s a list of strings, not numbers - alphabetical sort would return the values you’re mentioning in that case.

You need to convert those to numbers and use a f.e. int[] instead.


#3

hi @andrzej.kniola thanx for the quick reply solved it with your help !! you were correct

Thanx
regards
Nara