--- title: "Pi" type: "article" slug: "pi" url: "http://localhost/article/pi/" markdown_url: "http://localhost/article/pi.md" published_at: "2020-10-27T17:12:29+00:00" modified_at: "2024-05-26T14:34:11+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "This program can calculate PI to over 8000 decimal places— but don't hold your breath. It takes over 12 hours for 512 digits! The algorithm uses base 100 arithmetic, storing each digit in one byte of a character string (codes 0-99). It is based on the Taylor series for the arctangent." category: - name: "Syntax" slug: "syntax" taxonomy: "category" url: "http://localhost/category/periodicals/syntax/" post_tag: - 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/" - 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: "Blanchard Smith" slug: "blanchard-smith" taxonomy: "indiv" url: "http://localhost/indiv/blanchard-smith/" publication: "Syntax" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" authors: "Blanchard Smith" volume: "5" issue: "1" issues_articles: - id: 26723 title: "Syntax/Syntax ZX80 v5 n1" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v5-n1/" pages: "18" pubdate: "January 1984" archive_link: false volumeissue: "v5n1" --- # Pi This program can calculate PI to over 8000 decimal places— but don’t hold your breath. It takes over 12 hours for 512 digits! The algorithm uses base 100 arithmetic, storing each digit in one byte of a character string (codes 0-99). It is based on the Taylor series for the arctangent.