summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 16:21:31 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-25 16:21:31 (GMT)
commit724187929a9eec53e82f68d4826279723051dbcb (patch)
tree015bdf6768570ca768203888527fde42fd33fe14
parent1e7b2aa5d60fab438f0395633804f3ee5c7c9ca4 (diff)
downloadcpython-724187929a9eec53e82f68d4826279723051dbcb.zip
cpython-724187929a9eec53e82f68d4826279723051dbcb.tar.gz
cpython-724187929a9eec53e82f68d4826279723051dbcb.tar.bz2
use 'j' instead of 'i' for imaginary constants
-rw-r--r--Objects/complexobject.c4
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