VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Convert from fractions to decimal and back

by John Tunmire (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

This code will convert a Fraction to a decimal, and also convert a decimal to the lowest common denominator. It has now been updated to handle repeating decimals.

Inputs
A string consisting of a fraction or decdimal
Assumes
Nothing
Code Returns
Returns either a fraction or decimal depending on the users choice.

Rate Convert from fractions to decimal and back

Download Convert from fractions to decimal and back

Download Convert from fractions to decimal and back (3 KB)

Convert from fractions to decimal and back Comments

No comments have been posted about Convert from fractions to decimal and back. Why not be the first to post a comment about Convert from fractions to decimal and back.

Post your comment

Subject:
Message:
0/1000 characters