py: Fix typo printing complex numbers.
This commit is contained in:
parent
ce8f07adcd
commit
01b877d16d
@ -34,7 +34,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void *
|
|||||||
} else {
|
} else {
|
||||||
format_float(o->real, buf, sizeof(buf), 'g', 6, '\0');
|
format_float(o->real, buf, sizeof(buf), 'g', 6, '\0');
|
||||||
print(env, "(%s+", buf);
|
print(env, "(%s+", buf);
|
||||||
format_float(o->real, buf, sizeof(buf), 'g', 6, '\0');
|
format_float(o->imag, buf, sizeof(buf), 'g', 6, '\0');
|
||||||
print(env, "%sj)", buf);
|
print(env, "%sj)", buf);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user