Creating digits of pi
|
05-12-2018, 03:18 AM
Post: #46
|
|||
|
|||
RE: Creating digits of pi
(05-12-2018 01:42 AM)Gerson W. Barbosa Wrote: The 12/25 factor to determine the required number of terms may not be exact. I expected it to be 1/2 from the first tests, but I cannot confirm it to be correct the thousand-digit evaluation which is possible in Decimal BASIC. 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. Tom L Cui bono? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)