Complex number syntax

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Nov 11 08:35:15 PST 2007


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:fh77bs$295e$1 at digitalmars.com...

>    // d = -n-5 + (n-5) i; // not possible

You almost had it there, use

d = (-n - 5) + (n - 5) * 1i;

and it works. 




More information about the Digitalmars-d-learn mailing list