toMixedFraction method
Builds a MixedFraction from an int or a double.
If the value cannot be expressed as a mixed fraction, a MixedFractionException is thrown.
Implementation
MixedFraction toMixedFraction() => MixedFraction.fromFraction(toFraction());