Mathematical Magic: Decimal to Fractions

See all articles from Timelinez v4 n2/3
Author(s): Dave Miller
Publication: Timelinez
Pub Details: Timelinez v4 n2/3 (Volume 4, Issue 2)
Date: February/March 1986
Pages: 5

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.