I think your problem is in your assumption of the maximum possible value for the square root of numbers in the range of 0 to 1.
I managed to fix your code with one line to handle the 0.5 case, but I'll leave it to you to find it.
In reply to Re: [Study]: Searching for square roots
by jimbojones
in thread [Study]: Searching for square roots
by monsieur_champs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |