summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorYoctopuce dev <dev@yoctopuce.com>2025-01-30 10:23:06 +0100
committerDamien George <damien@micropython.org>2025-02-28 13:35:12 +1100
commit5fdd249c55d44ed0513e931c9b7364dd8b3454d9 (patch)
tree7ed451b4800fc10ad14cb0e91b3473a612ed0005 /docs/esp32/tutorial
parent50fab08e6b861adf65905d6adacd74201c87ddb9 (diff)
py/parsenum: Reduce code footprint of mp_parse_num_float.
The mantissa parsing code uses a floating point variable to accumulate digits. Using an `mp_float_uint_t` variable instead and casting to `mp_float_t` at the very end reduces code size. In some cases, it also improves the rounding behaviour as extra digits are taken into account by the int-to-float conversion code. An extra test case handles the special case where mantissa overflow occurs while processing deferred trailing zeros. Signed-off-by: Yoctopuce dev <dev@yoctopuce.com>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions