Hi,
Anyone had to program something to find the nearest ?
I have a list of the folowing X position values:
0
133
213
293
373
453
533
1093
1653
The middle of a tube needs to find best X position to pick.
So Middle Tube = Length / 2.
And this value has to find the closest value in that list...
Can I do this with... hmm substract the Middle of the Tube form each value and see wich one has the smallest value... or how would you guys write this >
Thanks,
Kind regards,
Combo
Anyone had to program something to find the nearest ?
I have a list of the folowing X position values:
0
133
213
293
373
453
533
1093
1653
The middle of a tube needs to find best X position to pick.
So Middle Tube = Length / 2.
And this value has to find the closest value in that list...
Can I do this with... hmm substract the Middle of the Tube form each value and see wich one has the smallest value... or how would you guys write this >
Thanks,
Kind regards,
Combo