fastnumbers
fastnumbers copied to clipboard
Super-fast and clean conversions to numbers for Python.
**Describe the bug** The following two related errors appeared: "\ returned NULL without setting an error" and "\ returned NULL without setting an error" when running isint('X') / isfloat('X'). The...
**Describe the bug** I am getting a lot of unit test failures due to slight numeric issues on armv7 **Expected behavior** Unit tests pass **Environment (please complete the following information):**...
While attempting #37 I ran into some troubles with how cumbersome changing things was. Maintenance has become a problem. This is mostly because the code is written in pure C....
Is there any param in `is_float` to check for nan and return False? I am trying: ``` x = float("nan") isfloat(x, allow_nan=False) True ```
Hi @SethMMorton, It could be possible for fastnumbers to handle None instead of rising and exception? ``` import fastnumbers fastnumbers.fast_float(None) TypeError: float() argument must be a string or a number,...
**Describe the bug** Observed in [bug 274 of Mikado](https://github.com/EI-CoreBioinformatics/mikado/issues/274) by myself and @fmarletaz: in certain conditions, FastNumbers crashes the program by returning `NULL` rather than None. **Expected behavior** FastNumbers should...
**Describe the feature or enhancement** The proposal is to change how `isfloat` interprets strings. Currently, it has the following behavior: ```python >>> isfloat("56") True >>> isfloat("56.0") True >>> isfloat(56) False...
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3. Release notes Sourced from jinja2's releases. 3.1.3 This is a fix release for the 3.1.x feature branch. Fix for GHSA-h5c8-rqwp-cp95. You are affected if...