duckduckgo/zeroclickinfo-goodies — pull request #870 by munizas (2014-12-23 19:04:50+00:00)
Title: Questions containing fractions should return fraction result

# Goodie Pull Request Template

Using this template will help us better understand your Instant Answer and assist you when necessary. Simply copy and paste the markdown below into the description of your GitHub pull request and complete as appropriate.

**What does your Instant Answer do?**
Returns a fraction math result if the query contains fractions

**What problem does your Instant Answer solve (Why is it better than organic links)?**
Currently the calculator only returns decimal answers, this feature adds the answer in fraction form

**What is the data source for your Instant Answer? (Provide a link if possible)**
N/A

**Why did you choose this data source?**
N/A

**Are there any other alternative (better) data sources?**
N/A

**What are some example queries that trigger this Instant Answer?**
"3/7 + 5/6", "1/4 + 2/4";

**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
Anyone who has the need for a calculator

**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**
Yes

**Which existing Instant Answers will this one supercede/overlap with?**

**Are you having any problems? Do you need our help with anything?**
Not at the moment

**Where did you hear about DuckDuckHack? (For first time contributors)**
I saw the duck icon pop up when I was typing into the top search bar in Firefox

**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**
https://drive.google.com/file/d/0B7KPWDfeqtoHeXBjZkg4NjBoc00/view?usp=sharing

## Checklist
Please place an 'X' where appropriate.

```
[] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)
[X] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)
Appended tests to the existing Calculator.t
[X] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)
[X] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)
[X] Tested cross-browser compatibility

Please let us know which browsers/devices you've tested on:
- Windows 8
[] Google Chrome
[] Firefox
[] Opera
[] IE 10

- Windows 7
[X] Google Chrome
[X] Firefox
[] Opera
[] IE 8
[] IE 9
[X] IE 10

- Windows XP
[] IE 7
[] IE 8

- Mac OSX
[] Google Chrome
[X] Firefox
[] Opera
[] Safari

- iOS (iPhone)
[] Safari Mobile
[] Google Chrome
[] Opera

- iOS (iPad)
[] Safari Mobile
[] Google Chrome
[] Opera

- Android
[] Firefox
[] Native Browser
[] Google Chrome
[] Opera
```