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
01b877d1
Commit
01b877d1
authored
Mar 27, 2014
by
Damien George
Browse files
py: Fix typo printing complex numbers.
parent
ce8f07ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objcomplex.c
View file @
01b877d1
...
...
@@ -34,7 +34,7 @@ STATIC void complex_print(void (*print)(void *env, const char *fmt, ...), void *
}
else
{
format_float
(
o
->
real
,
buf
,
sizeof
(
buf
),
'g'
,
6
,
'\0'
);
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
);
}
#else
...
...
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