Skip to content

Commit 87aae63

Browse files
committed
readme updates for std::float16_t and std::bfloat16_t
1 parent dc39efa commit 87aae63

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ The library seeks to follow the C++17 (see
118118
Furthermore, we have the following restrictions:
119119
120120
* We support `float` and `double`, but not `long double`. We also support
121-
fixed-width floating-point types such as `std::float32_t` and
122-
`std::float64_t`.
121+
fixed-width floating-point types such as `std::float64_t`, `std::float32_t`,
122+
`std::float16_t`, and `std::bfloat16_t`.
123123
* We only support the decimal format: we do not support hexadecimal strings.
124124
* For values that are either very large or very small (e.g., `1e9999`), we
125125
represent it using the infinity or negative infinity value and the returned
@@ -241,7 +241,8 @@ constexpr double constexptest() {
241241
## C++23: Fixed width floating-point types
242242

243243
The library also supports fixed-width floating-point types such as
244-
`std::float32_t` and `std::float64_t`. E.g., you can write:
244+
`std::float64_t`, `std::float32_t`, `std::float16_t`, and `std::bfloat16_t`.
245+
E.g., you can write:
245246

246247
```C++
247248
std::float32_t result;

0 commit comments

Comments
 (0)