mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
Update README.md
This commit is contained in:
parent
4c303f4759
commit
56153ba9d8
@ -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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user