by Ian Ippolito (vWorker) (14 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)
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).
Upload