|
From: Matthias S. <mat...@us...> - 2007-03-31 01:17:19
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21284 Modified Files: measurement.hpp Log Message: include angle conversions in conversion_headers.hpp in angle header files, add dimensionless unit static consts to SI, CGS Index: measurement.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/measurement.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- measurement.hpp 31 Mar 2007 00:59:00 -0000 1.3 +++ measurement.hpp 31 Mar 2007 01:17:16 -0000 1.4 @@ -305,20 +305,24 @@ inline std::ostream& operator<<(std::ostream& os,const measurement<Y>& val) { - os << std::setprecision(13) - << std::setw(21) - << std::scientific - << val.value(); + os << val.value(); if (val.uncertainty() > Y(0)) - //os << "(+/-" << val.uncertainty() << ")"; - os << " (rel. unc. = " - << std::setprecision(1) - << std::setw(7) - << std::scientific - << std::abs(val.uncertainty()/val.value()) << ")"; - else - os << " (exact)"; + os << "(+/-" << val.uncertainty() << ")"; + +// os << std::setprecision(13) +// << std::setw(21) +// << std::scientific +// << val.value(); +// +// if (val.uncertainty() > Y(0)) +// os << " (rel. unc. = " +// << std::setprecision(1) +// << std::setw(7) +// << std::scientific +// << std::abs(val.uncertainty()/val.value()) << ")"; +// else +// os << " (exact)"; return os; } |