Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce error in sexp_read_float_tail (from Taylor R Campbell)
scale*10 is computed exactly until scale exceeds 2^54/10; in contrast, scale*0.1 may not be computed exactly, and fl(0.1) is not even 0.1. WARNING: This change is not complete -- it does nothing to prevent overflow with very long strings of digits after the decimal point.
- Loading branch information
Showing
2 changed files
with
10 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