Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: Add a release not for
floating.is_integer
- Loading branch information
Bas van Beek
committed
Aug 31, 2021
1 parent
9f11564
commit 38be2fd
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
``is_integer`` is now available to `numpy.floating` and `numpy.integer` | ||
----------------------------------------------------------------------- | ||
Based on its counterpart in `float` and `int, the numpy floating point and | ||
integer types types now support `~float.is_integer`. Returns ``True`` if the | ||
floating point number is finite with integral value, and ``False`` otherwise. | ||
|
||
.. code-block:: python | ||
>>> np.float32(-2.0).is_integer() | ||
True | ||
>>> np.float64(3.2).is_integer() | ||
False | ||
>>> np.int32(-2).is_integer() | ||
True |