Questions tagged [stdfloat]

Use this tag for questions involving types from the C++23 header and the corresponding C23 types. The header provides aliases for extended precision floating-point types such as std::float128_t. These are ABI-compatible with C types, such as _Float128.

2 questions
6
votes
2 answers

Can't use operator<< with std::float128_t; how do I print it?

I have the following code, which doesn't compile with x86_64 GCC 13: #include #include int main() { std::cout << std::float128_t{1} << '\n'; } This gives me the following error: : In function 'int…
Jan Schultke
  • 17,446
  • 6
  • 47
  • 96
2
votes
1 answer

What is the difference between float, _Float32, _Float32x, and _Float32_t?

C23 introduced a number of floating point types, including but not limited to: _Float32 _Float32x _Float32_t I am unsure of the differences, such as: Are they keywords, or are they type aliases, or something else? Are they distinct types, or can…
Jan Schultke
  • 17,446
  • 6
  • 47
  • 96