printer.cpp extend precision

This commit is contained in:
Michael Davidsaver
2018-10-30 17:09:56 -07:00
parent 7d68d177d7
commit 77c67802a3

View File

@@ -431,7 +431,7 @@ std::ostream& operator<<(std::ostream& strm, const PVStructure::Formatter& forma
case scalar:
strm<<format::indent();
printTimeT(strm, format.xtop);
strm<<*static_cast<const PVScalar*>(value.get())<<' ';
strm<<std::setprecision(6)<<*static_cast<const PVScalar*>(value.get())<<' ';
printAlarmT(strm, format.xtop);
strm<<'\n';
return strm;
@@ -440,7 +440,7 @@ std::ostream& operator<<(std::ostream& strm, const PVStructure::Formatter& forma
strm<<format::indent();
printTimeT(strm, format.xtop);
printAlarmT(strm, format.xtop);
strm<<*static_cast<const PVScalarArray*>(value.get())<<'\n';
strm<<std::setprecision(6)<<*static_cast<const PVScalarArray*>(value.get())<<'\n';
return strm;
case structure: