micropython/tests/float
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
..
array_construct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
builtin_float_hash.py
builtin_float_minmax.py tests/float/builtin_float_minmax: PEP8 fixes. 2017-06-08 17:23:22 +03:00
builtin_float_round.py
builtin_float_round_intbig.py
bytearray_construct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
bytes_construct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
cmath_fun.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
cmath_fun_special.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
complex1.py
complex1_intbig.py
float1.py
float2int_doubleprec_intbig.py
float2int_fp30_intbig.py
float2int_intbig.py
float_array.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
float_divmod.py
float_divmod_relaxed.py
float_struct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
int_big_float.py
int_divzero.py
int_power.py
list_index.py
math_fun.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_bool.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_int.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_intbig.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
math_fun_special.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
string_format.py
string_format2.py
string_format_fp30.py
string_format_modulo.py py/formatfloat: Fix number of digits and exponent sign when rounding. 2017-06-13 13:36:56 +10:00
string_format_modulo2.py
string_format_modulo2_intbig.py
string_format_modulo3.py py/formatfloat: Fix number of digits and exponent sign when rounding. 2017-06-13 13:36:56 +10:00
string_format_modulo3.py.exp py/formatfloat: Fix number of digits and exponent sign when rounding. 2017-06-13 13:36:56 +10:00
true_value.py
types.py