08-22-2022, 02:26 AM
Now working with pi and found one more bug, which didn't affect all of the sqrt calcs, amazingly enough.
Before the DO:LOOP that uses the counter h&& = h&& + s begins, I added...
IF LEN(a$) < LEN(b$) THEN SWAP a$, b$
The loop takes care of some calculation where the VAL() drops leading zeros, but to do so properly, the fist variable a$ of a$ and b$ variables, must always be the longest string, or at lease equal in length for that leading zero conversion from VAL() to STR() to work properly.
I have edited the last post with this statement addition.
It looks like I lost a couple of seconds in the process. Oh well, fast and accurate beats faster and wrong.
Pete
Before the DO:LOOP that uses the counter h&& = h&& + s begins, I added...
IF LEN(a$) < LEN(b$) THEN SWAP a$, b$
The loop takes care of some calculation where the VAL() drops leading zeros, but to do so properly, the fist variable a$ of a$ and b$ variables, must always be the longest string, or at lease equal in length for that leading zero conversion from VAL() to STR() to work properly.
I have edited the last post with this statement addition.
It looks like I lost a couple of seconds in the process. Oh well, fast and accurate beats faster and wrong.
Pete