kopia lustrzana https://github.com/micropython/micropython
84895f1a21
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. |
||
---|---|---|
.. | ||
array_construct.py | ||
builtin_float_hash.py | ||
builtin_float_minmax.py | ||
builtin_float_round.py | ||
builtin_float_round_intbig.py | ||
bytearray_construct.py | ||
bytes_construct.py | ||
cmath_fun.py | ||
cmath_fun_special.py | ||
complex1.py | ||
complex1_intbig.py | ||
float1.py | ||
float2int_doubleprec_intbig.py | ||
float2int_fp30_intbig.py | ||
float2int_intbig.py | ||
float_array.py | ||
float_compare.py | ||
float_divmod.py | ||
float_divmod_relaxed.py | ||
float_parse.py | ||
float_parse_doubleprec.py | ||
float_struct.py | ||
int_big_float.py | ||
int_divzero.py | ||
int_power.py | ||
list_index.py | ||
math_domain.py | ||
math_domain_special.py | ||
math_fun.py | ||
math_fun_bool.py | ||
math_fun_int.py | ||
math_fun_intbig.py | ||
math_fun_special.py | ||
string_format.py | ||
string_format2.py | ||
string_format_fp30.py | ||
string_format_modulo.py | ||
string_format_modulo2.py | ||
string_format_modulo2_intbig.py | ||
string_format_modulo3.py | ||
string_format_modulo3.py.exp | ||
true_value.py | ||
types.py |