diff options
author | Guido van Rossum <guido@python.org> | 1996-01-25 16:21:31 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-01-25 16:21:31 (GMT) |
commit | 724187929a9eec53e82f68d4826279723051dbcb (patch) | |
tree | 015bdf6768570ca768203888527fde42fd33fe14 /Objects/complexobject.c | |
parent | 1e7b2aa5d60fab438f0395633804f3ee5c7c9ca4 (diff) | |
download | cpython-724187929a9eec53e82f68d4826279723051dbcb.zip cpython-724187929a9eec53e82f68d4826279723051dbcb.tar.gz cpython-724187929a9eec53e82f68d4826279723051dbcb.tar.bz2 |
use 'j' instead of 'i' for imaginary constants
Diffstat (limited to 'Objects/complexobject.c')
-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 |