Jump to content

Isqrt (integer square root) of X: Difference between revisions

m
No edit summary
Line 3,753:
end
</lang>
An alternate version of isqrt() that can handle the full range of S-BASIC integer values (well, almost: it will fail for MAXINT-1 (=32,767) looks like this.
<lang basic>
function isqrt(x = integer) = integer
211

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.