-
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially fix printf hex float numbers/%a rounding (#1286)
Hexadecimal printing of floating-point numbers in cosmopolitan (that is, using the the conversion specifier) is improved to have correct rounding of results in rounding modes other than the default one (ie. FE_NEAREST) This commit fixes that, and adds tests for the change (note that there's still some rounding issues with the a conversion specifier in general in relatively rare cases (that is without non-default rounding modes) where I've left commented-out tests for anyone interested in improving it more
- Loading branch information
1 parent
51c0f44
commit 4d05060
Showing
2 changed files
with
61 additions
and
8 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