We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e443d commit 6e54fcfCopy full SHA for 6e54fcf
1 file changed
py/objcomplex.c
@@ -30,7 +30,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void *
30
char buf[32];
31
if (o->real == 0) {
32
format_float(o->imag, buf, sizeof(buf), 'g', 6, '\0');
33
- print(env, "%s", buf);
+ print(env, "%sj", buf);
34
} else {
35
format_float(o->real, buf, sizeof(buf), 'g', 6, '\0');
36
print(env, "(%s+", buf);
0 commit comments