-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a pretty niche problem to have, but when you have it it's really nice to know.
- Loading branch information
Showing
5 changed files
with
66 additions
and
3 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,10 @@ | ||
RELEASE_TYPE: minor | ||
|
||
Did you know that of the 2\ :superscript:`64` possible floating-point numbers, | ||
2\ :superscript:`53` of them are ``nan`` - and Python prints them all the same way? | ||
|
||
While nans *usually* have all zeros in the sign bit and mantissa, this | ||
`isn't always true <https://wingolog.org/archives/2011/05/18/value-representation-in-javascript-implementations>`__, | ||
and :wikipedia:`'signaling' nans might trap or error <https://en.wikipedia.org/wiki/NaN#Signaling_NaN>`. | ||
To help distinguish such errors in e.g. CI logs, Hypothesis now prints ``-nan`` for | ||
negative nans, and adds a comment like ``# Saw 3 signaling NaNs`` if applicable. |
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
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
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
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