Pi: Difference between revisions

20 bytes added ,  1 year ago
m
Improved the output of PI. Previously spaces were inserted between digits. Now all the digits are output without any extra spaces.
(Pi in Chipmunk Basic, GW-BASIC and MSX Basic)
m (Improved the output of PI. Previously spaces were inserted between digits. Now all the digits are output without any extra spaces.)
Line 808:
480 REM
490 REM OUTPUT DIGITS
500 IF ND=0 THEN PRINT RIGHT$(STR$(D),1);: RETURN
510 IF D=0 THEN RETURN
520 PRINT RIGHT$(STR$(D),1);".";
530 ND = 0
550 RETURN
2

edits