Complex.fromRealMixedFraction constructor

Complex.fromRealMixedFraction(
  1. 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);