Convert Decimal to LCD Fraction
This program uses a set of routines that convert any number to its fractional equivalent in least common denominator (LCD) form. For example: 1.80 is returns as 1 and 4/5. The routine returns the result in 'english' and as individual pieces (ex: 1,4,5 for the previous example) so you can tailor it to your needs. Also handles negative numbers, numbers with more than 2 decimal places, and decimal numbers with or without a whole number (i.e. 4.5 or 4 or .5 or all accepted and handled).
AI
AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Source Code
Upload
Original Comments (3)
Recovered from Wayback Machine