Fractions Calculator

Published  Apr 13, 2010
Updated  Apr 13, 2010

Description

This is a little app I made that does calculations with two fractions. It adds, divides, multiplies, or subtracts the two and displays the reduced answer. It implements a Fraction class that I made.

Screenshots

Download

Filename
Size
Date
Downloads
  iPhoneFractionCalculator.zip
600.77 KB
Apr 13, 2010
158

Comments

Sign in to comment.
mountaindew   -  May 14, 2010
I ended up making a full-blown fractions-calculator app:


So if you do like, [3] [OVER] [5] [-] [1] [OVER] [4] [=], it returns 7/20.

I'm not gonna post the code here though, I hope to eventually get in the iPhone Developer Program so I can sell some apps.
 Respond  
Gummo   -  Apr 16, 2010
Ok, I didn't really look into the code much when I read it before. :P
 Respond  
mountaindew   -  Apr 15, 2010
@Hawkee, yep they show up fine now

@Gummo, Okay, but a negative denominator like 5/-3 should be fine the way it is. And obviously 5/-1 won't return -5 in this app since the answer spot is a fraction so it's not gonna spit out a whole number. But the Fraction class itself simplifies it to -5 if you use the simplify and getString methods.
 Respond  
Gummo   -  Apr 15, 2010
@mountaindew, 5/-1 should be -5. That's what.
 Respond  
Hawkee   -  Apr 15, 2010
Let me know if you get a notice for this now.
 Respond  
Hawkee   -  Apr 14, 2010
@mountaindew, thanks for catching that.
 Respond  
mountaindew   -  Apr 14, 2010
@Gummo what's wrong with a negative denominator?

@Hawkee, these comments didn't show up in my notices page
 Respond  
Hawkee   -  Apr 14, 2010
Was going to try this out but it looks like I need to upgrade to Snow Leopard. Been putting it off until I finally have a reason to upgrade. I think this just might be my reason.
 Respond  
Gummo   -  Apr 13, 2010
Does it fix negatives so there's never a negative denominator?
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.