Post Reply 
Creating digits of pi
05-12-2018, 03:47 AM (This post was last modified: 05-12-2018 03:56 AM by Gerson W. Barbosa.)
Post: #47
RE: Creating digits of pi
(05-12-2018 03:18 AM)toml_12953 Wrote:  If you want to maintain compatibility with ANSI BASIC and possibly future versions of Decimal BASIC, change
PRINT left$(p$,2);
to
PRINT p$(1:2);
and
PRINT mid$(p$,i,1);
to
PRINT p$(i:i);

left$, right$ and mid$ aren't in the ANSI standard and may go away in future versions of Decimal BASIC.

It's a pity, though. LEFT$, RIGHT$ and MID$ are so much more intuitive! Anyway, thanks for the information. I'll edit the program tomorrow on the computer.

Speaking of compatibility, there's no way I can read this page on any of my Apple devices, except on the old iPhone 4 I'm using right now. Not sure whether it's my fault or Apple's...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Creating digits of pi - brickviking - 02-06-2018, 12:24 AM
RE: Creating digits of pi - Joe Horn - 02-06-2018, 01:38 AM
RE: Creating digits of pi - toml_12953 - 02-06-2018, 09:24 PM
RE: Creating digits of pi - brickviking - 02-06-2018, 10:38 PM
RE: Creating digits of pi - brickviking - 02-08-2018, 04:22 AM
RE: Creating digits of pi - toml_12953 - 02-08-2018, 01:02 PM
RE: Creating digits of pi - TASP - 02-07-2018, 10:30 PM
RE: Creating digits of pi - pier4r - 02-09-2018, 02:59 PM
RE: Creating digits of pi - emece67 - 02-10-2018, 09:14 PM
RE: Creating digits of pi - TASP - 02-11-2018, 12:12 AM
RE: Creating digits of pi - ttw - 02-12-2018, 03:59 AM
RE: Creating digits of pi - EdS2 - 02-17-2018, 12:27 PM
RE: Creating digits of pi - EdS2 - 02-21-2018, 11:01 AM
RE: Creating digits of pi - pier4r - 02-17-2018, 04:25 PM
RE: Creating digits of pi - brickviking - 02-17-2018, 09:27 PM
RE: Creating digits of pi - pier4r - 02-23-2018, 01:34 PM
RE: Creating digits of pi - SlideRule - 05-13-2018, 05:09 PM



User(s) browsing this thread: 3 Guest(s)