--- title: "Roundup" type: "article" slug: "roundup" url: "http://localhost/article/roundup/" markdown_url: "http://localhost/article/roundup.md" published_at: "2026-11-23T19:00:47+00:00" modified_at: "2026-11-23T19:00:47+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "ROUNDUP...............FROM TERRY[address omitted][phone number omitted] 1 PRINT \" ENTER YOUR DECIMAL NUMBER\" 2 LET D=100 3 INPUT N$ 4 LET M$=STR$ (INT (VAL N$*D+.5)/D) 5 PRINT N$,M$ 6 GOTO 3 7 REM TO CHANGE NUMBER OF DECIMAL PLACES ADJUST VALUE VARIABLE D The KEY LINE is line 4 ... for most internal program use it…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Tips and tricks" slug: "tips-and-tricks" taxonomy: "post_tag" url: "http://localhost/tag/tips-and-tricks/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Terry Hardenbergh" slug: "terry-hardenbergh" taxonomy: "indiv" url: "http://localhost/indiv/terry-hardenbergh/" publication_r: id: 35941 title: "CATS Newsletter" type: "periodical" url: "http://localhost/periodical/cats-newsletter/" authors: "Terry Hardenbergh" volume: "3" issue: "7" issues_articles: - id: 39606 title: "CATS v3 n7" type: "issue" url: "http://localhost/issue/cats-v3-n7/" pages: "14" pubdate: "October 1985" archive_link: false --- # Roundup ROUNDUP……………FROM TERRY [address omitted] [phone number omitted] ``` 1 PRINT " ENTER YOUR DECIMAL NUMBER" 2 LET D=100 3 INPUT N$ 4 LET M$=STR$ (INT (VAL N$*D+.5)/D) 5 PRINT N$,M$ 6 GOTO 3 7 REM ``` TO CHANGE NUMBER OF DECIMAL PLACES ADJUST VALUE VARIABLE D The KEY LINE is line 4 … for most internal program use it should be written: ``` LET N$=STR$(INT(VAL N$*100+.5)/100) ``` This provides two decimal places as in dollars and cents, rounds the last penny up corectly and only uses up one program line. It should ALWAYS be used when any monetary figures are DEVIDED within your program as this is the place you will get an endless decimal answer that messes up your nice printout format! Terry Hardenbergh