Yoctopuce dev
5fdd249c55
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 >
2025-02-28 13:35:12 +11:00
..
2023-06-08 17:54:24 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2023-06-08 17:54:24 +10:00
2023-06-08 17:54:24 +10:00
2023-02-09 15:20:00 +11:00
2020-04-18 22:36:49 +10:00
2020-08-29 15:18:01 +10:00
2020-03-30 13:21:58 +11:00
2022-06-23 11:46:47 +10:00
2022-07-25 16:11:26 +10:00
2020-08-29 14:12:20 +10:00
2020-08-29 14:12:20 +10:00
2022-02-02 16:49:55 +11:00
2024-05-28 10:49:22 +10:00
2024-05-28 10:49:22 +10:00
2024-05-28 10:49:22 +10:00
2023-06-08 17:54:24 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2022-07-25 14:23:34 +10:00
2022-07-26 22:23:47 +10:00
2022-07-26 22:23:47 +10:00
2022-08-12 23:53:34 +10:00
2024-09-06 11:08:39 +10:00
2023-09-29 12:00:15 +10:00
2022-08-12 23:53:34 +10:00
2020-03-30 13:21:58 +11:00
2025-02-28 13:35:12 +11:00
2024-03-20 14:13:49 +11:00
2024-03-20 14:13:49 +11:00
2023-12-06 14:06:01 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2020-03-30 13:23:05 +11:00
2014-07-05 06:14:29 +01:00
2022-01-23 09:28:33 +11:00
2022-01-23 09:28:33 +11:00
2023-06-18 12:45:55 +10:00
2023-06-18 12:45:55 +10:00
2023-02-16 10:38:38 +11:00
2023-09-29 12:02:21 +10:00
2022-07-25 16:11:26 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2023-02-16 10:38:38 +11:00
2023-02-16 10:38:38 +11:00
2020-03-30 13:21:58 +11:00
2019-08-17 23:23:17 +10:00
2020-03-30 13:21:58 +11:00
2018-06-12 12:17:43 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2017-06-13 13:36:56 +10:00
2022-08-12 23:53:34 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2014-04-17 16:21:43 +01:00