Arithmetic/Rational: Difference between revisions

→‎{{header|Objective-C}}: oops that didn't do anything either
(→‎{{header|Objective-C}}: fixed mistake; seems to work now)
(→‎{{header|Objective-C}}: oops that didn't do anything either)
Line 895:
-(void)setDenominator: (int)num
{
if ( num < 0 ) selfnumerator = [self neg]-numerator;
denominator = abs(num);
}
Anonymous user