# Standard library header <stdfloat> (C++23)

> C++ Atlas: `cppatlas.com/w/cpp/header/stdfloat` | Source: https://en.cppreference.com/w/cpp/header/stdfloat | Domain: Standard headers | Standards: C++23

This header is part of the type support library, providing fixed width floating-point types.

## Official Specification Summary (cppreference)

This header is part of the type support library, providing fixed width floating-point types.

**Types**

- `float16_t` (C++23), `float32_t` (optional), `float64_t`, `float128_t`: binary floating-point type with width of exactly 16, 32, 64, and 128 bits respectively (typedef)
- `bfloat16_t` (C++23): brain floating-point type with 16 bits exactly (typedef)

### Synopsis

```cpp
namespace std {
  #if defined(__STDCPP_FLOAT16_T__)
    using float16_t  = /* implementation-defined */;
  #endif
  #if defined(__STDCPP_FLOAT32_T__)
    using float32_t  = /* implementation-defined */;
  #endif
  #if defined(__STDCPP_FLOAT64_T__)
    using float64_t  = /* implementation-defined */;
  #endif
  #if defined(__STDCPP_FLOAT128_T__)
    using float128_t = /* implementation-defined */;
  #endif
  #if defined(__STDCPP_BFLOAT16_T__)
    using bfloat16_t = /* implementation-defined */;
  #endif
}
```

### References

- C++23 standard (ISO/IEC 14882:2024):

  - 17.5 Header `<stdfloat>` synopsis [stdfloat.syn]

---
Attribution: content from https://en.cppreference.com/w/cpp/header/stdfloat (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.