From 724187929a9eec53e82f68d4826279723051dbcb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 25 Jan 1996 16:21:31 +0000 Subject: use 'j' instead of 'i' for imaginary constants --- Objects/complexobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 391b80e..82a779b 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 -- cgit v0.12