zhshqzyc
asked on
find min value
HI
I have an list(array)
The result is
I have an list(array)
1 0.01
2 0.04
3 0.04
5 0.1
I want to find the string which has the minimum value which is 0.01(here example)The result is
1 0.01
ASKER
Please consider 1,2,3,5 etc.
1 space 0.01 is a string
1 space 0.01 is a string
You have two entities in each string. How is the first entity to be treated?
Should it be ignored?
Should it be ignored?
ASKER
No, I want to get both of them together. I think linq can do it but I am not strong on it.
It could be likely
It could be likely
select data
let element = data.split(' ')[1]
where element.min()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Does it return "0.01" or "1 0.01"?
I want the later.
I want the later.
Open in new window