https://issues.dlang.org/show_bug.cgi?id=20688

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Walter Bright <[email protected]> ---
The %f format is for doubles, and creal/cimag return reals. To fix:

  printf("%f+%fi\n", cast(double)creal(r), cast(double)cimag(r));

which prints:

  4.000000+0.000000i

--

Reply via email to