Kaydet (Commit) 72418792 authored tarafından Guido van Rossum's avatar Guido van Rossum

use 'j' instead of 'i' for imaginary constants

üst 1e7b2aa5
...@@ -234,9 +234,9 @@ complex_buf_repr(buf, v) ...@@ -234,9 +234,9 @@ complex_buf_repr(buf, v)
complexobject *v; complexobject *v;
{ {
if (v->cval.real == 0.) if (v->cval.real == 0.)
sprintf(buf, "%.12gi", v->cval.imag); sprintf(buf, "%.12gj", v->cval.imag);
else else
sprintf(buf, "(%.12g%+.12gi)", v->cval.real, v->cval.imag); sprintf(buf, "(%.12g%+.12gj)", v->cval.real, v->cval.imag);
} }
static int static int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment