diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 4 |
1 files 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 |