Calculating negative fractions in Objective C
- by Mark Reid
I've been coding my way through Steve Kochan's Programming in Objective-C 2.0 book. I'm up to an exercise in chapter 7, ex 4, in case anyone has the book.
The question posed by the exercise it will the Fraction class written work with negative fractions such as -1/2 + -2/3?
Here's the implementation code in question -
@implementation Fraction
…