From c98fbc222efe3e8b1cf6504b2b86b4b1d7f3a605 Mon Sep 17 00:00:00 2001 From: Jan Schultke Date: Tue, 9 Dec 2025 20:00:51 +0100 Subject: [PATCH] [charconv.from.chars] Clarify how from_chars treats the sign of zero in floating-point underflow --- source/text.tex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/text.tex b/source/text.tex index f8e942ea4c..bf7ab8d836 100644 --- a/source/text.tex +++ b/source/text.tex @@ -271,6 +271,11 @@ \tcode{value} is set to the parsed value, after rounding according to \tcode{round_to_nearest}\iref{round.style}, and the member \tcode{ec} is value-initialized. +\begin{note} +If the parsed value is too small to be represented, +\tcode{ec} is value-initialized and +\tcode{value} is set to a zero with the same sign as the parsed value before rounding. +\end{note} \indexlibraryglobal{from_chars}% \begin{itemdecl}