From: Guido van Rossum Date: Thu, 25 Jan 1996 16:21:31 +0000 (+0000) Subject: use 'j' instead of 'i' for imaginary constants X-Git-Tag: v1.4b1~392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=724187929a9eec53e82f68d4826279723051dbcb;p=python use 'j' instead of 'i' for imaginary constants --- diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 391b80ef3e..82a779b26f 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -234,9 +234,9 @@ complex_buf_repr(buf, v) complexobject *v; { if (v->cval.real == 0.) - sprintf(buf, "%.12gi", v->cval.imag); + sprintf(buf, "%.12gj", v->cval.imag); else - sprintf(buf, "(%.12g%+.12gi)", v->cval.real, v->cval.imag); + sprintf(buf, "(%.12g%+.12gj)", v->cval.real, v->cval.imag); } static int