VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Convert Decimal to LCD Fraction

Ian Ippolito (vWorker)  (14 Submissions)   Math/Dates   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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

Rate Convert Decimal to LCD Fraction (7(7 Vote))
Convert Decimal to LCD Fraction.bas

Convert Decimal to LCD Fraction Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters