Damien George 6ed4581f54 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 13:36:56 +10:00
..
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00
2017-03-08 22:36:02 +11:00
2017-05-29 11:36:05 +03:00
2015-11-13 12:49:18 +00:00
2017-05-29 11:36:05 +03:00
2017-01-27 17:19:06 +11:00
2017-05-29 11:36:05 +03:00
2017-05-29 11:36:05 +03:00