--- title: "Numbers Held Inexactly on the ZX81 (Part 5)" type: "article" slug: "numbers-held-inexactly-on-the-zx81-part-5" url: "http://localhost/article/numbers-held-inexactly-on-the-zx81-part-5/" markdown_url: "http://localhost/article/numbers-held-inexactly-on-the-zx81-part-5.md" published_at: "2026-03-13T00:24:06+00:00" modified_at: "2026-03-13T00:24:07+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Fifth and final part of the series, covering FOR-NEXT loop counter behavior with non-integral step values. Explains why floating-point imprecision requires slightly overstating loop limits and rounding with INT(N+.5). Also notes a subtraction quirk in the ZX81's ROM and its source." category: - name: "Syntax" slug: "syntax" taxonomy: "category" url: "http://localhost/category/periodicals/syntax/" post_tag: - name: "BASIC (programming language)" slug: "basic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/basic-programming-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Frank O'Hara" slug: "frank-ohara" taxonomy: "indiv" url: "http://localhost/indiv/frank-ohara/" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" authors_r: - name: "Frank O'Hara" slug: "frank-ohara" taxonomy: "indiv" url: "http://localhost/indiv/frank-ohara/" volume: "3" issue: "7" issues_articles: - id: 52481 title: "Syntax/Syntax ZX80 v3 n7" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v3-n7/" pages: "14" pubdate: "July 1982" archive_link: false --- # Numbers Held Inexactly on the ZX81 (Part 5) Fifth and final part of the series, covering FOR-NEXT loop counter behavior with non-integral step values. Explains why floating-point imprecision requires slightly overstating loop limits and rounding with INT(N+.5). Also notes a subtraction quirk in the ZX81’s ROM and its source.