public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108046] New: The dot in the floating-point alternative form has wrong position
@ 2022-12-10 11:12 hewillk at gmail dot com
  2022-12-10 12:11 ` [Bug libstdc++/108046] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2022-12-10 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108046
           Summary: The dot in the floating-point alternative form has
                    wrong position
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <format>
#include <iostream>

int main() {
  std::cout << std::format("{:#.0}\n", 10.);
  std::cout << std::format("{:#.1}\n", 10.);
  std::cout << std::format("{:#.0g}\n", 10.);
}

libstdc++ gives:

1e+01.
1e+01.
1e+01

But they should all be "1.e+01"

https://godbolt.org/z/Y41ve6E7W

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-27 16:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-10 11:12 [Bug libstdc++/108046] New: The dot in the floating-point alternative form has wrong position hewillk at gmail dot com
2022-12-10 12:11 ` [Bug libstdc++/108046] " redi at gcc dot gnu.org
2023-04-26  6:57 ` rguenth at gcc dot gnu.org
2023-07-27  9:24 ` rguenth at gcc dot gnu.org
2023-07-27 15:03 ` cvs-commit at gcc dot gnu.org
2023-07-27 15:04 ` redi at gcc dot gnu.org
2023-09-27 16:17 ` cvs-commit at gcc dot gnu.org
2023-09-27 16:19 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).