Commit 0c287215056ee25fe48228436f3719b0a62c668d
1 parent
941cf247
Put function value with 3-digit precision in console/logger.
Showing
1 changed file
with
1 additions
and
1 deletions
src/opt/GOptimizerLM.cpp
| ... | ... | @@ -458,7 +458,7 @@ std::string GOptimizerLM::print(const GChatter& chatter) const |
| 458 | 458 | |
| 459 | 459 | // Append information |
| 460 | 460 | result.append("\n"+gammalib::parformat("Optimized function value")); |
| 461 | - result.append(gammalib::str(m_value)); | |
| 461 | + result.append(gammalib::str(m_value, 3)); | |
| 462 | 462 | result.append("\n"+gammalib::parformat("Absolute precision")); |
| 463 | 463 | result.append(gammalib::str(m_eps)); |
| 464 | 464 | ... | ... |