Complex.fromRealMixedFraction constructor
Complex.fromRealMixedFraction(
- MixedFraction real
Creates a complex number having only the real part expressed as a MixedFraction object.
The imaginary part is set to 0i.
Implementation
factory Complex.fromRealMixedFraction(MixedFraction real) =>
Complex(real.toDouble(), 0);