micropython/tests/float
Damien George 84895f1a21 py/parsenum: Improve parsing of floating point numbers.
This patch improves parsing of floating point numbers by converting all the
digits (integer and fractional) together into a number 1 or greater, and
then applying the correct power of 10 at the very end.  In particular the
multiple "multiply by 0.1" operations to build a fraction are now combined
together and applied at the same time as the exponent, at the very end.

This helps to retain precision during parsing of floats, and also includes
a check that the number doesn't overflow during the parsing.  One benefit
is that a float will have the same value no matter where the decimal point
is located, eg 1.23 == 123e-2.
2017-11-27 12:51:52 +11:00
..
array_construct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
builtin_float_hash.py tests/float: Add tests for hashing float and complex numbers. 2017-04-04 12:14:34 +10:00
builtin_float_minmax.py tests/float/builtin_float_minmax: PEP8 fixes. 2017-06-08 17:23:22 +03:00
builtin_float_round_intbig.py tests/float: Add tests for round() of inf, nan and large number. 2017-03-24 11:00:45 +11:00
builtin_float_round.py tests/float: Add tests for round() of inf, nan and large number. 2017-03-24 11:00:45 +11:00
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_special.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
complex1_intbig.py
complex1.py py/formatfloat: Don't print the negative sign of a NaN value. 2017-10-10 16:01:13 +11:00
float1.py py/objfloat: Allow float() to parse anything with the buffer protocol. 2017-11-21 15:01:38 +11:00
float2int_doubleprec_intbig.py tests/float2int*: Suffix with _intbig, don't run on any other int type. 2017-03-06 16:30:12 +01:00
float2int_fp30_intbig.py tests/float2int*: Suffix with _intbig, don't run on any other int type. 2017-03-06 16:30:12 +01:00
float2int_intbig.py tests/float2int*: Suffix with _intbig, don't run on any other int type. 2017-03-06 16:30:12 +01:00
float_array.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
float_compare.py py/objfloat: Fix binary ops with incompatible objects. 2017-09-02 23:05:24 +03:00
float_divmod_relaxed.py
float_divmod.py
float_parse_doubleprec.py py/parsenum: Improve parsing of floating point numbers. 2017-11-27 12:51:52 +11:00
float_parse.py py/parsenum: Improve parsing of floating point numbers. 2017-11-27 12:51:52 +11:00
float_struct.py tests/float: Convert "sys.exit()" to "raise SystemExit". 2017-06-08 14:00:57 +10:00
int_big_float.py py: Implement raising a big-int to a negative power. 2017-07-25 11:49:22 +10:00
int_divzero.py
int_power.py
list_index.py
math_domain_special.py py/modmath: Add full checks for math domain errors. 2017-10-10 15:57:45 +11:00
math_domain.py py/modmath: Add full checks for math domain errors. 2017-10-10 15:57:45 +11: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
math_fun.py py/modmath: Check for zero division in log with 2 args. 2017-07-04 02:15:11 +10:00
string_format2.py
string_format_fp30.py
string_format_modulo2_intbig.py tests/string_format_modulo2: Split off intbig test. 2017-03-07 00:13:36 +01:00
string_format_modulo2.py tests/string_format_modulo2: Split off intbig test. 2017-03-07 00:13:36 +01:00
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
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.py
true_value.py
types.py