[Bug libstdc++/121374] wrong value std::numeric_limits<__float128>::max_digits10

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 19 12:51:05 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121374

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=104772
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
In r14-1582-g6261d10521f9fd I did:

-      static _GLIBCXX_USE_CONSTEXPR int max_digits10
-       = __glibcxx_max_digits10 (112);
+#if __cplusplus >= 201103L
+      static constexpr int max_digits10 = 35;
+#endif


But that was already wrong because it used 112 not 113, which was present since
r14-1433-gf150a084e25eaa for PR 104772

Dunno where I got 112 from, maybe just a typo.


More information about the Gcc-bugs mailing list