toMixedFraction method

MixedFraction toMixedFraction()

Builds a MixedFraction from an int or a double.

If the value cannot be expressed as a mixed fraction, a MixedFractionException exception is thrown.

Implementation

MixedFraction toMixedFraction() => MixedFraction.fromFraction(toFraction());