--- title: "Multiplication Accuracy with the ZX81" id: 77467 type: "computer_media" slug: "multiplication-accuracy-with-the-zx81" url: "http://localhost/computer_media/multiplication-accuracy-with-the-zx81/" markdown_url: "http://localhost/computer_media/multiplication-accuracy-with-the-zx81.md" published_at: "2026-11-15T18:38:24+00:00" modified_at: "2026-11-15T18:38:24+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/multiplication-accuracy-1.png" excerpt: "Long multiplication of two digit strings for exact products; the printed listing has three errors and does not run." post_tag: - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "George Chambers" slug: "george-chambers" taxonomy: "indiv" url: "http://localhost/indiv/george-chambers/" genre: - name: "Mathematics" slug: "mathematics" taxonomy: "genre" url: "http://localhost/type/mathematics/" media_type: "Program" programmers: - name: "George Chambers" slug: "george-chambers" taxonomy: "indiv" url: "http://localhost/indiv/george-chambers/" mediadate: "1990" images: - url: "http://localhost/wp-content/uploads/2026/11/multiplication-accuracy-1.png" - url: "http://localhost/wp-content/uploads/2026/11/multiplication-accuracy-2.png" article_media: - id: 23194 title: "Multiplication Accuracy with the ZX81" type: "article" url: "http://localhost/article/multiplication-accuracy-with-the-zx81/" media_type_tags: "Mathematics" license: false --- # Multiplication Accuracy with the ZX81 Meant to multiply two whole numbers of any length exactly, digit by digit, instead of to the ZX81’s 8-digit accuracy: type the two numbers as strings and the product is printed one digit per line. As printed, the listing has errors in lines 70, 90 and 110 (line 70 repeats FOR M, line 90 reads LET B + JAL X$(M)), so it does not run. Published in Sinc-Link September-October 1990 ([Multiplication Accuracy with the ZX81](https://timexsinclair.com/article/multiplication-accuracy-with-the-zx81/)). ## Source Code ``` 30 INPUT X$ 40 INPUT Y$ 50 DIM A( LEN X$ + LEN Y$) 60 FOR M = LEN X$ TO 1 STEP-1 70 FOR M = LEN Y$ TO 1 STEP -1 80 LET C = M + N 90 LET B + JAL X$(M) 100 LET A(C) = VAL Y$(N) * B + A(C) 110 LET I = INT A(C) - (I * 10) 120 LET A(C) = A(C) - (I * 10) 130 LET A(C-1) = A(C-1) + I 140 NEXT N 150 NEXT M 160 CLS 170 PRINT X$; "X"; Y$; " = "; 180 PRINT 190 FOR P = 2 TO (LEN X$ + LEN Y$) 200 PRINT A(P) 210 NEXT P 220 STOP ```