Commit 187992df authored by Stefan Behnel's avatar Stefan Behnel

Beautify example output.

parent 1bd40102
......@@ -17,4 +17,4 @@ cdef extern from "complexobject.h":
def cprint(complex c):
print(f"{c.real}+{c.imag}j") # uses C calls to the above property methods.
print(f"{c.real :.4f}{c.imag :+.4f}j") # uses C calls to the above property methods.
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