"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.