Quote (DD_Rocking @ Nov 7 2014 07:56pm)
So, I'm working on a project right now, and I'm confused on how you would convert a decimal value (say .333333) to a fraction(1/3)
I've looked it up for a while on Google and haven't really been able to get a straight forward answer that I really understand...
Is there a simple way of doing this?
Example for the different situations I would need to solve:
1/3 + 4/5
3/4 - 6/7
4/5 * 3/5
5/6 / 4/5
Honestly, I'm sort of lost on this. I didn't think it would be too difficult, and maybe it isn't but I'm not seeing it

you asked about converting decimals to fractions, but the problem you need to solve are just fraction arithmetic. can you explain what converting decimals to fractions has to do with fraction arithmetic?
/edit: risking stating the obvious:
to add/subtract fractions, create a common denominator and add/subtract the numerator.
to multiply fractions, multiply the numerator and denominator.
to divide fractions, flip the numerator/denominator of the second and multiply.
reduce at the end.
This post was edited by carteblanche on Nov 7 2014 07:04pm