diff options
| author | Guido van Rossum <guido@python.org> | 1996-01-25 16:21:31 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1996-01-25 16:21:31 +0000 |
| commit | dba8f4adb08fceaa62ee979bfdb994c8da5b1702 (patch) | |
| tree | 7cffb92443f8cac2bda1250e96b48b20f49e9c5e /Objects | |
| parent | 064f949cce2eb502b73eff6da483458791eb61f5 (diff) | |
| download | cpython-dba8f4adb08fceaa62ee979bfdb994c8da5b1702.tar.gz | |
use 'j' instead of 'i' for imaginary constants
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 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 |
