Posts

Showing posts from September, 2025

Decimal-to-Fraction Converter (DFC)

Image
Please enable JavaScript As opposed to KFC, this is DFC . We can simply type or paste the number on the input ➡️ hit Enter ➡️ bam! We can try 3.1416 or 3.14159 , an approximation for π (pi) — credit to Master Liu Hui (3rd-century Chinese mathematician). The century is using Gregorian, not Confucian. Hence, 3rd. Chinese calendar runs in 60-year cycles, using a combination of the Ten Heavenly Stems (天干) and Twelve Earthly Branches (地支). Take that, paper and pencil. But get this, Master Liu Hui lived in Three Kingdoms era. About DFC converts a decimal into a fraction by using the convergent method , which builds up increasingly accurate fractions through a stepping process. It stops once the denominator reaches 1,000 or less, ensuring the result stays simple and readable. So, for example, 0.333 becomes \( \frac{333}{1000} \) because that's already neat and within the limit — but 0.3333 gets conv...