id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 6627,nonfinite_num_put formatting of 0.0 is incorrect,krwalker@…,Paul A. Bristow,"We noticed time strings changed from displaying 00:00.00 to 00:00000 after installing the nonfinite_num facets globally. It appears that formatting for 0.0 isn't behaving as it should when precision and fixed are involved (and potentially others). {{{ #include #include #include #include void writeZero( std::ostream& stream ) { stream << std::fixed << std::setw( 5 ) << std::setfill( '0' ) << std::setprecision( 2 ) << 0.0; } int main() { std::stringstream standardStream; writeZero( standardStream ); std::cout << standardStream.str() << std::endl; std::stringstream nonfiniteStream; std::locale nonfiniteNumLocale( std::locale(), new boost::math::nonfinite_num_put< char >() ); nonfiniteStream.imbue( nonfiniteNumLocale ); writeZero( nonfiniteStream ); std::cout << nonfiniteStream.str() << std::endl; return 0; } // OUTPUT: // // 00.00 // 00000 }}}",Bugs,closed,To Be Determined,math,Boost 1.50.0,Problem,fixed,,