File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ The library seeks to follow the C++17 (see
118
118
Furthermore, we have the following restrictions:
119
119
120
120
* 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 `.
123
123
* We only support the decimal format: we do not support hexadecimal strings.
124
124
* For values that are either very large or very small (e.g., `1e9999`), we
125
125
represent it using the infinity or negative infinity value and the returned
@@ -241,7 +241,8 @@ constexpr double constexptest() {
241
241
## C++23: Fixed width floating-point types
242
242
243
243
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:
245
246
246
247
``` C++
247
248
std::float32_t result;
You can’t perform that action at this time.
0 commit comments