VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Convert Decimal to LCD Fraction

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

Rate Convert Decimal to LCD Fraction

Upload

Download this snippet    Add to My Saved Code

Convert Decimal to LCD Fraction Comments

No comments have been posted about Convert Decimal to LCD Fraction. Why not be the first to post a comment about Convert Decimal to LCD Fraction.

Post your comment

Subject:
Message:
0/1000 characters