MediaWiki:Sitenotice
2026-03-12: Cocopedia.com is now using a new caching system that should make things faster. Please let me know if you encounter any new issues.

2026-03-15: MediaWiki has been reinstalled and the old database and files restored. It was pretty clogged up from being upgraded so many times since 2004. I am also testing out Cloudflare to see if it can prevent the 'bot assaults that took the site down last year.

2026-03-16: Special thanks to Don Barber for hosting a backup mirror of CoCopedia: https://cocopedia.dgb3.net

SQRT for Color Basic

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Revision as of 15:41, 10 September 2015 by Polluks (talk | contribs) (Category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Issue: Microcomputer NEWS, April 1981 V3N04 Pag.11

The Square Root function in standard Color BASIC (or should I say the lack of one). The RSC-4 catalog claimed a SQR function was available in standard Color BASIC, but it is only available in Extended Color BASIC. This being the case, here is a short subroutine you can use to figure square roots in your programs:

A = your number 
B = square root (A)
10 B=A/3
20 B=.5*(B+A/B)
30 C=B*B
35 C=INT(C*10000+.5)/10000
40 IF C<>A THEN GOTO 20