forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better eps(); use hex values for fp traits; hex/oct/bin fp printing.
The previous eps() improvements were part of the story, but not all of it. See https://en.wikipedia.org/wiki/Machine_epsilon#How_to_determine_machine_epsilon for how to do it correctly -- this is what this version uses. Allowing bin/oct/hex to print floating point values by their bits makes it much easier to see what's going on with these operations. Removing the > and >= methods for floats since these are not actually necessary: you can just swap the arguments, which is what the fallback definition does anyway.
- Loading branch information
1 parent
dbe21a7
commit bc694cf
Showing
2 changed files
with
36 additions
and
35 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
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