Skip to content
Snippets Groups Projects
Commit a32b3816 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Merge branch 'use-showpoint-in-genconf' into 'master'

use std::showpoint instead of std::fixed to print numbers

See merge request !254
parents bf940c1e beee2a35
No related branches found
No related tags found
1 merge request!254use showpoint instead of fixed
Pipeline #
...@@ -780,7 +780,7 @@ void configGenerator::pythonizeValue( const PropertyBase* p, string& pvalue, str ...@@ -780,7 +780,7 @@ void configGenerator::pythonizeValue( const PropertyBase* p, string& pvalue, str
ptype = "DataObjectHandleBase"; ptype = "DataObjectHandleBase";
} else { } else {
std::ostringstream v_str; std::ostringstream v_str;
v_str.setf( std::ios::fixed ); // to correctly display floats v_str.setf( std::ios::showpoint ); // to correctly display floats
p->toStream( v_str ); p->toStream( v_str );
pvalue = v_str.str(); pvalue = v_str.str();
ptype = "list"; ptype = "list";
......
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