negate method
The sign is changed and the result is returned in new Rational object.
Implementation
@override
MixedFraction negate() => MixedFraction(
whole: whole * -1,
numerator: numerator,
denominator: denominator,
);
The sign is changed and the result is returned in new Rational object.
@override
MixedFraction negate() => MixedFraction(
whole: whole * -1,
numerator: numerator,
denominator: denominator,
);