This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
Watch
1
Star
0
Fork
0
You've already forked micropython
mirror of
https://github.com/licsber/micropython.git
synced
2024-09-22 01:50:24 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
4847460232
micropython
/
tests
/
float
/
string_format_modulo3.py.exp
3 lines
8 B
Plaintext
Raw
Normal View
History
Unescape
Escape
tests/float: Improve formatfloat.c test coverage using Python.
2017-01-05 08:06:12 +08:00
-10
py/formatfloat: Fix number of digits and exponent sign when rounding. This patch fixes 2 things when printing a floating-point number that requires rounding up of the mantissa: - retain the correct precision; eg 0.99 becomes 1.0, not 1.00 - if the exponent goes from -1 to 0 then render it as +0, not -0
2017-06-13 11:36:56 +08:00
100
Reference in New Issue
Copy Permalink