mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
readme updates for std::float16_t and std::bfloat16_t
This commit is contained in:
parent
dc39efa49d
commit
87aae63ed7
@ -118,8 +118,8 @@ The library seeks to follow the C++17 (see
|
|||||||
Furthermore, we have the following restrictions:
|
Furthermore, we have the following restrictions:
|
||||||
|
|
||||||
* We support `float` and `double`, but not `long double`. We also support
|
* We support `float` and `double`, but not `long double`. We also support
|
||||||
fixed-width floating-point types such as `std::float32_t` and
|
fixed-width floating-point types such as `std::float64_t`, `std::float32_t`,
|
||||||
`std::float64_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 either very large or very small (e.g., `1e9999`), we
|
||||||
represent it using the infinity or negative infinity value and the returned
|
represent it using the infinity or negative infinity value and the returned
|
||||||
@ -241,7 +241,8 @@ constexpr double constexptest() {
|
|||||||
## C++23: Fixed width floating-point types
|
## C++23: Fixed width floating-point types
|
||||||
|
|
||||||
The library also supports fixed-width floating-point types such as
|
The library also supports fixed-width floating-point types such as
|
||||||
`std::float32_t` and `std::float64_t`. E.g., you can write:
|
`std::float64_t`, `std::float32_t`, `std::float16_t`, and `std::bfloat16_t`.
|
||||||
|
E.g., you can write:
|
||||||
|
|
||||||
```C++
|
```C++
|
||||||
std::float32_t result;
|
std::float32_t result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user