Search Tools Links Login

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).

Original Author: Ian Ippolito (psc)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 113 times


Visual Basic 6

Posted: 9/3/2020 3:45:00 PM
Size: 3,158 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.