Fraction questions should return fractions!

Log in to Vote
3
3 Votes • 10 Comments
A search in DDG for 3/7 + 5/6 returns 1.2619047619 instead of a fraction.

It would be nice for both answer forms to be returned (fraction and decimal).

For what it's worth, the competition also returns the decimal answer only.
• posted 3 years and 6 months ago In Development

anonymous
That would be really cool.
posted by <hidden> • 3 years and 6 months ago Link
ducksinarow
I like it.
posted by ducksinarow 3 years and 6 months ago Link
ducksinarow
I'll take a look into this one. Sounds like a fun one to get my hands dirty with. I have finals in a few days so I'll get on this one right after.
posted by ducksinarow 3 years and 6 months ago Link
javathunderman
I can't tell you how nice that would be. Any source suggestions? (Except Wolfram Alpha)
posted by javathunderman Community Leader3 years and 6 months ago Link
ducksinarow
I'm working on this now, keep you posted.
posted by ducksinarow 3 years and 6 months ago Link
ducksinarow
So I've made progress on a solution, I've attached a sample screenshot. I just have some clean up work to do as well as finish up the comments and then I'll submit the potential solution.

https://drive.google.com/file/d/0B7KPWDf...
posted by ducksinarow 3 years and 6 months ago Link
jmvbxx
Looks great! Does it also simplify the answer?
posted by jmvbxx 3 years and 6 months ago Link
ducksinarow
Yeah, I compute the greatest common divisor and apply it to the answer so that the final result is simplified.
posted by ducksinarow 3 years and 6 months ago Link
Honema
Is it possible to retrieve https://drive.google.com/file/d/0B7KPWDf...
as 1,11/42th but then in proper ways?
also, could a calculator apear when typing in an equation?
posted by Honema 3 years and 4 months ago Link
ducksinarow
Ok I just submitted the pull request, now I'll sit back and wait for a response.
posted by ducksinarow 3 years and 6 months ago Link