SethMMorton / fastnumbers

Super-fast and clean conversions to numbers for Python.
https://pypi.org/project/fastnumbers/
MIT License
105 stars 13 forks source link

Introduce the "denoise" option to `try_real` and `try_forceint` (and `real`) #77

Closed SethMMorton closed 11 months ago

SethMMorton commented 11 months ago

This option will allow inputs like 3.453e21 (or "3.453e21") to be converted to 3453000000000000000000 instead of 3452999999999999737856.

When merged it will close #69.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (c970c09) 94.51% compared to head (3258e0f) 93.81%.

Files Patch % Lines
src/cpp/parser.cpp 83.47% 5 Missing and 15 partials :warning:
include/fastnumbers/parser/numeric.hpp 50.00% 0 Missing and 3 partials :warning:
include/fastnumbers/buffer.hpp 87.50% 0 Missing and 1 partial :warning:
src/cpp/c_str_parsing.cpp 97.67% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #77 +/- ## ========================================== - Coverage 94.51% 93.81% -0.70% ========================================== Files 19 20 +1 Lines 1786 1989 +203 Branches 242 274 +32 ========================================== + Hits 1688 1866 +178 - Misses 22 27 +5 - Partials 76 96 +20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.