Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6e54fcfd
Commit
6e54fcfd
authored
Mar 29, 2014
by
Damien George
Browse files
py: Fix typo printing complex numbers that are purely imaginary.
parent
d1e443d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objcomplex.c
View file @
6e54fcfd
...
...
@@ -30,7 +30,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void *
char
buf
[
32
];
if
(
o
->
real
==
0
)
{
format_float
(
o
->
imag
,
buf
,
sizeof
(
buf
),
'g'
,
6
,
'\0'
);
print
(
env
,
"%s"
,
buf
);
print
(
env
,
"%s
j
"
,
buf
);
}
else
{
format_float
(
o
->
real
,
buf
,
sizeof
(
buf
),
'g'
,
6
,
'\0'
);
print
(
env
,
"(%s+"
,
buf
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment