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

Program Quickie

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Revision as of 00:24, 15 April 2019 by Luis46coco (talk | contribs) (Created page with "Here we begin a new feature, somewhat patterned after "MAD" magazine's famous "various places around the magazine". We hope PROGRAM QUICKIES will provide some help with short...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Here we begin a new feature, somewhat patterned after "MAD" magazine's famous "various places around the magazine". We hope PROGRAM QUICKIES will provide some help with short little programs for small functions that you may not have thought about -- or may not have even needed -- until now!)

One of the things it is always helpful to be able to find is the percent change (formally, the delta percent) of two numbers. here is a short little program that does just this:

10 INPUT "OLD NUMBER";X1
20 INPUT "NEW NUMBER";X2
30 DP=((X2-X1)/X1)*100
40 PRINTUSING "###.##";DP;: PRINT "% CHANGE"