Skip to content
Snippets Groups Projects
Commit bd6530b5 authored by Edward Brown's avatar Edward Brown
Browse files

Re #21749: Use maximum precision when converting to string.

parent 902cbe5d
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@
#include <typeinfo>
#include <vector>
#include <stdexcept>
#include <iomanip>
namespace Mantid {
......@@ -185,6 +186,7 @@ template <class T> void Parameter::set(const T &t) {
*/
template <class Type> std::string ParameterType<Type>::asString() const {
std::ostringstream str;
str << std::setprecision(std::numeric_limits<Type>::digits10);
str << m_value;
return str.str();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment