This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/59987] New: [C++11]: Missing ios_base::hexfloat format specifier


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59987

            Bug ID: 59987
           Summary: [C++11]: Missing ios_base::hexfloat format specifier
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: npl at chello dot at

The specifier for hexadecimal floats is missing:
http://www.cplusplus.com/reference/ios/hexfloat/
I suppose the parsing of this format isnt working either (only tested this with
gcc 4.7, but there doesnt seem to be any changes).

stringstream instream("0x1.0624dd2f1a9fcp-10");
double val;
instream >> val; // should be  0.001


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]