Complex.fromRealMixedFraction constructor

Complex.fromRealMixedFraction(
  1. MixedFraction real
)

Creates a complex number having only the real part, which is expressed as a MixedFraction. The imaginary part is set to 0.

Implementation

Complex.fromRealMixedFraction(MixedFraction real)
    : real = real.toDouble(),
      imaginary = 0;