Update README.md

This commit is contained in:
Daniel Lemire 2024-08-26 10:15:53 -04:00 committed by GitHub
parent 4c303f4759
commit 56153ba9d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,8 +147,11 @@ print the number 22250738585072012 three times:
## Behavior of result_out_of_range
When parsing floating-point values, the numbers can sometimes be too small (e.g., `1e-1000`) or
too large (e.g., `1e1000`). In such cases, it is customary to parse small values to zero and large
values to infinity. That is the behaviour followed by the fast_float library.
too large (e.g., `1e1000`). The C language established the precedent that these small values are out of range.
In such cases, it is customary to parse small values to zero and large
values to infinity. That is the behaviour of the C language (e.g., `stdtod`). That is the behaviour followed by the fast_float library.
Specifically, we follow Jonathan Wakely's interpretation of the standard: