04-25-2025, 12:01 AM
(This post was last modified: 04-25-2025, 12:01 AM by Circlotron.)
First, what is the numerical limit to the position number returned by INSTR? I think I might be getting an overflow that is producing wrong results.
Second, how does INSTR work internally? Previously I was using a FOR NEXT loop with a MID inside it to search though a line of 1 billion numerals of pi and it was pretty slow. Then I realised I should have been using INSTR instead and this sped things up by about 30 times! So how does INSTR actually work?
Second, how does INSTR work internally? Previously I was using a FOR NEXT loop with a MID inside it to search though a line of 1 billion numerals of pi and it was pretty slow. Then I realised I should have been using INSTR instead and this sped things up by about 30 times! So how does INSTR actually work?

