Subarray of 2D sparse array with double dimensions

Hi,
I tried to run the same code without any changes on my machine and for me it has returned 38499 points

After adding or subtracting 0.01 for min and max sim variables result hasn’t changed

But when I have added +/- 1 to min and max sim variables program has returned 50000 points

What OS are you using to run this program? I’m using Windows 10, so maybe result is depending on platform which is used to run the code?