mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-07 02:09:52 +08:00
Clarify behavior for underflow
In https://github.com/fastfloat/fast_float/pull/189 the behavior on underflow was changed to better match the standard's recommendations, but the README does not mention underflow explicitly.
This commit is contained in:
parent
2e4ed7d6fd
commit
cb299bdecc
@ -141,9 +141,12 @@ Furthermore, we have the following restrictions:
|
|||||||
fixed-width floating-point types such as `std::float64_t`, `std::float32_t`,
|
fixed-width floating-point types such as `std::float64_t`, `std::float32_t`,
|
||||||
`std::float16_t`, and `std::bfloat16_t`.
|
`std::float16_t`, and `std::bfloat16_t`.
|
||||||
* We only support the decimal format: we do not support hexadecimal strings.
|
* We only support the decimal format: we do not support hexadecimal strings.
|
||||||
* For values that are either very large or very small (e.g., `1e9999`), we
|
* For values that are very large positives or negatives (e.g., `1e9999`), we
|
||||||
represent it using the infinity or negative infinity value and the returned
|
represent them using a positive or negative infinity and the returned
|
||||||
`ec` is set to `std::errc::result_out_of_range`.
|
`ec` is set to `std::errc::result_out_of_range`.
|
||||||
|
* For values that are very close to zero (e.g., `1e-9999`), we represent them
|
||||||
|
using a positive or negative zero and the returned `ec` is set to
|
||||||
|
`std::errc::result_out_of_range`.
|
||||||
|
|
||||||
We support Visual Studio, macOS, Linux, freeBSD. We support big and little
|
We support Visual Studio, macOS, Linux, freeBSD. We support big and little
|
||||||
endian. We support 32-bit and 64-bit systems.
|
endian. We support 32-bit and 64-bit systems.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user