-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a convenience function for floating-point comparisons #1441
Merged
Commits on Mar 7, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 6f5e1e3 - Browse repository at this point
Copy the full SHA 6f5e1e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd28e28 - Browse repository at this point
Copy the full SHA dd28e28View commit details
Commits on Mar 8, 2016
-
Use the plus/minus unicode symbol in the repr string.
This was a challenge because it had to work in python2 and python3, which have almost opposite unicode models, and I couldn't use the six library. I'm also not sure the solution I found would work in python3 before python3.3, because I use the u'' string prefix which I think was initially not part of python3.
Configuration menu - View commit details
-
Copy full SHA for bf97d5b - Browse repository at this point
Copy the full SHA bf97d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8a8382 - Browse repository at this point
Copy the full SHA b8a8382View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dab095 - Browse repository at this point
Copy the full SHA 5dab095View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d0f066 - Browse repository at this point
Copy the full SHA 4d0f066View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9c73b8 - Browse repository at this point
Copy the full SHA c9c73b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a90292 - Browse repository at this point
Copy the full SHA 6a90292View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d155bd - Browse repository at this point
Copy the full SHA 7d155bdView commit details
Commits on Mar 11, 2016
-
Properly handle inf, nan, and built-in numeric types.
This commit also: - Dramatically increases the number of unit tests , mostly by borrowing from the standard library's unit tests for math.isclose(). - Refactors approx() into two classes, one of which handles comparing individual numbers (ApproxNonIterable) and another which uses the first to compare individual numbers or sequences of numbers.
Configuration menu - View commit details
-
Copy full SHA for 42a7e04 - Browse repository at this point
Copy the full SHA 42a7e04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0784480 - Browse repository at this point
Copy the full SHA 0784480View commit details
Commits on Mar 12, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 916c0a8 - Browse repository at this point
Copy the full SHA 916c0a8View commit details
Commits on Mar 13, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 8612654 - Browse repository at this point
Copy the full SHA 8612654View commit details
Commits on Mar 14, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 9e7206a - Browse repository at this point
Copy the full SHA 9e7206aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dcc862 - Browse repository at this point
Copy the full SHA 0dcc862View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ceee08 - Browse repository at this point
Copy the full SHA 5ceee08View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.