id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8745,stream operator << for number/cpp_int_backend with 8 bit or less precision not working,neal.p.smith@…,John Maddock,"for 8 bit or less numbers << with hex format sets characters to the numeric value of their digit rather than the ascii value. ie if the character should be 'F' the returned value is 15 rather than the ASCII value for F. number> myNum07( ""0xF""); number> myNum08( ""0x0F""); number> myNum09( ""0x0F""); number> myNum16(""0x000F""); char outBuf[1000]; std::stringstream ss; ss << setfill('0'); ss << ""7 bit : "" << std::setw(2) << std::hex << myNum07 << endl; ss << ""8 bit : "" << std::setw(2) << std::hex << myNum08 << endl; ss << ""9 bit : "" << std::setw(2) << std::hex << myNum09 << endl; ss << ""16 bit: "" << std::setw(2) << std::hex << myNum16 << endl; strncpy(outBuf, ss.str().c_str(), 999); printf(""%s\n"", outBuf); output is: ---------- 7 bit : 0☼ 8 bit : 0☼ 9 bit : 0f 16 bit: 0f ",Bugs,closed,To Be Determined,multiprecision,Boost 1.53.0,Problem,fixed,multiprecision cpp_int_backend stream,