P4168

Fix defects in floating-point std::from_chars (LWG3081, LWG3082, LWG3456)

R1

This paper supersedes [[P2827R1]](https://wg21%2elink/p2827r1) and fixes [[LWG3081]](https://wg21%2elink/LWG3081), [[LWG3082]](https://wg21%2elink/LWG3082), and [[LWG3456]](https://wg21%2elink/LWG3456). It is intended as a defect report for C++17. The handling of floating-point overflow and underflow in `std::from_chars` is inconsistent; the implementations diverge from each other, and every implementation diverges from the wording in the standard.

Authors
Jan Schultke
Mailing
2026-09
Doc date
2026-09-21
Audience
LEWG

Revision history

  1. 2026-09
    R1 Selected (shown above)
  2. 2026-04
    R0 SG6

    Fix defects in floating-point std::from_chars (LWG3081, LWG3082, LWG3456)