Skip to content

Commit c525652

Browse files
authored
Merge pull request #363 from pitrou/patch-1
Clarify behavior for underflow
2 parents 2e4ed7d + cb299bd commit c525652

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,12 @@ Furthermore, we have the following restrictions:
141141
fixed-width floating-point types such as `std::float64_t`, `std::float32_t`,
142142
`std::float16_t`, and `std::bfloat16_t`.
143143
* We only support the decimal format: we do not support hexadecimal strings.
144-
* For values that are either very large or very small (e.g., `1e9999`), we
145-
represent it using the infinity or negative infinity value and the returned
144+
* For values that are very large positives or negatives (e.g., `1e9999`), we
145+
represent them using a positive or negative infinity and the returned
146146
`ec` is set to `std::errc::result_out_of_range`.
147+
* For values that are very close to zero (e.g., `1e-9999`), we represent them
148+
using a positive or negative zero and the returned `ec` is set to
149+
`std::errc::result_out_of_range`.
147150
148151
We support Visual Studio, macOS, Linux, freeBSD. We support big and little
149152
endian. We support 32-bit and 64-bit systems.

0 commit comments

Comments
 (0)