Thank you so much. This is such a beautiful implementation!
It works very well if my search value has only 2 digits after the ".". I cannot match anything if I search for the following value with 3 digits after the "." (sorry I haven't specified the forms it can take). Is it possible to make your solution more flexible in terms of number of digits?
my $input = 7.255;
In reply to Re^2: Find range in coordinates array (updated)
by IB2017
in thread Find range in array with indices
by IB2017
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |