feat: Improve float parsing logic for enhanced accuracy in numeric conversions #79

Merged
Lars merged 1 commits from develop into main 2026-04-12 07:30:45 +02:00
Owner
  • Updated the _parse_float_auto function in type_converter.py to better handle various decimal and thousand separators, particularly for cases with long decimal parts from sources like Apple Health.
  • Enhanced the logic for splitting and processing numeric strings to ensure correct interpretation of values, including edge cases with multiple separators.
  • Added handling for cases where numeric strings may contain both commas and periods, improving overall robustness in float parsing.

These changes enhance the accuracy of numeric conversions, ensuring more reliable data processing across the application.

- Updated the `_parse_float_auto` function in `type_converter.py` to better handle various decimal and thousand separators, particularly for cases with long decimal parts from sources like Apple Health. - Enhanced the logic for splitting and processing numeric strings to ensure correct interpretation of values, including edge cases with multiple separators. - Added handling for cases where numeric strings may contain both commas and periods, improving overall robustness in float parsing. These changes enhance the accuracy of numeric conversions, ensuring more reliable data processing across the application.
Lars added 1 commit 2026-04-12 07:30:40 +02:00
feat: Improve float parsing logic for enhanced accuracy in numeric conversions
All checks were successful
Deploy Development / deploy (push) Successful in 56s
Build Test / pytest-backend (push) Successful in 4s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s
90a27846ca
- Updated the `_parse_float_auto` function in `type_converter.py` to better handle various decimal and thousand separators, particularly for cases with long decimal parts from sources like Apple Health.
- Enhanced the logic for splitting and processing numeric strings to ensure correct interpretation of values, including edge cases with multiple separators.
- Added handling for cases where numeric strings may contain both commas and periods, improving overall robustness in float parsing.

These changes enhance the accuracy of numeric conversions, ensuring more reliable data processing across the application.
Lars merged commit 72eb94d186 into main 2026-04-12 07:30:45 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Lars/mitai-jinkendo#79
No description provided.