[Bug c++/110749] wrong show float

2023-07-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #6) > You don't need to handle the -'- sign yourself: Oops, I mean '-' sign.

[Bug c++/110749] wrong show float

2023-07-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #6 from Jonathan Wakely --- If you use std::fixed as the floatfield format then std::setprecision specifies the number of digits after the decimal point: os << (0.0 > value ? '-' : '0') << std::setw(cv.size - 1) << std::setfill('0')

[Bug c++/110749] wrong show float

2023-07-20 Thread alexsyrezerv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #5 from Aleksei --- 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)

[Bug c++/110749] wrong show float

2023-07-20 Thread alexsyrezerv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #4 from Aleksei --- ок

[Bug c++/110749] wrong show float

2023-07-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #3 from Jonathan Wakely --- Your program is using the default precision for printing a double: 6 significant figures. 101.922499943 with 6 digits of precision is 101.922 (because (24 rounds to 2). 101.922499943 with

[Bug c++/110749] wrong show float

2023-07-20 Thread alexsyrezerv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #2 from Aleksei --- Created attachment 55589 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55589&action=edit GDB SHOW IT But GDB show it normally

[Bug c++/110749] wrong show float

2023-07-20 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 Andreas Schwab changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED