Hi,
I am logging some double data using the async_log example as type of log and then putting data as:
BOOST_LOG(lg)<<dataDouble1<<";"dataDouble2;
I was not able to set the precision of the double data. I would like for example to have a format like %8.8f.ù
How can I do?
Thanks
J
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You have several alternatives. First, you're free to use standard manipulators like std::setprecision and std::setw. Second, you can use Boost.Format (www.boost.org) and specify with and precision in printf-like style.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am logging some double data using the async_log example as type of log and then putting data as:
BOOST_LOG(lg)<<dataDouble1<<";"dataDouble2;
I was not able to set the precision of the double data. I would like for example to have a format like %8.8f.ù
How can I do?
Thanks
J
You have several alternatives. First, you're free to use standard manipulators like std::setprecision and std::setw. Second, you can use Boost.Format (www.boost.org) and specify with and precision in printf-like style.