--- title: "Mathematical Magic: Decimal to Fractions" type: "article" slug: "mathematical-magic-decimal-to-fractions" url: "http://localhost/article/mathematical-magic-decimal-to-fractions/" markdown_url: "http://localhost/article/mathematical-magic-decimal-to-fractions.md" published_at: "2026-03-14T13:39:57+00:00" modified_at: "2026-03-14T13:39:58+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "A short BASIC program that converts any decimal value less than 1.0 to the nearest 1/64th fraction, useful for woodworking and metalworking dimension scaling. User inputs a decimal (e.g., 0.197) and the program outputs the fraction (e.g., 13/64) and the rounding difference in ten-thousandths. The denominator can be changed by modifying line 40." category: - name: "Timelinez" slug: "timelinez" taxonomy: "category" url: "http://localhost/category/periodicals/timelinez/" post_tag: - name: "BASIC (programming language)" slug: "basic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/basic-programming-language/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Dave Miller" slug: "dave-miller" taxonomy: "indiv" url: "http://localhost/indiv/dave-miller/" publication_r: id: 21571 title: "Timelinez" type: "periodical" url: "http://localhost/periodical/timelinez/" authors_r: - name: "Dave Miller" slug: "dave-miller" taxonomy: "indiv" url: "http://localhost/indiv/dave-miller/" volume: "4" issue: "2" issues_articles: - id: 38831 title: "Timelinez v4 n2/3" type: "issue" url: "http://localhost/issue/timelinez-v4-n2-3/" pages: "5" pubdate: "February/March 1986" archive_link: false --- A short BASIC program that converts any decimal value less than 1.0 to the nearest 1/64th fraction, useful for woodworking and metalworking dimension scaling. User inputs a decimal (e.g., 0.197) and the program outputs the fraction (e.g., 13/64) and the rounding difference in ten-thousandths. The denominator can be changed by modifying line 40.