public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "alexsyrezerv at mail dot ru" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110749] wrong show float Date: Thu, 20 Jul 2023 11:08:48 +0000 [thread overview] Message-ID: <bug-110749-4-fVBcb17pU4@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-110749-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #5 from Aleksei <alexsyrezerv at mail dot ru> --- this variant more clear.. 4 symbol after point// may by c++ has modification for set symbols after decimal point ? ``` void func_float_point(std::ostream& os, const double& value, const mcx::convert_info_t& cv) { char buf[buf_size]; snprintf(buf, buf_size - 1, "%0*.*f", cv.size, cv.pos, value); os << buf; } ```
next prev parent reply other threads:[~2023-07-20 11:08 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-20 6:46 [Bug c++/110749] New: " alexsyrezerv at mail dot ru 2023-07-20 7:31 ` [Bug c++/110749] " schwab@linux-m68k.org 2023-07-20 9:09 ` alexsyrezerv at mail dot ru 2023-07-20 10:03 ` redi at gcc dot gnu.org 2023-07-20 10:58 ` alexsyrezerv at mail dot ru 2023-07-20 11:08 ` alexsyrezerv at mail dot ru [this message] 2023-07-20 12:10 ` redi at gcc dot gnu.org 2023-07-20 12:10 ` redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-110749-4-fVBcb17pU4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).