make output of decimal places consistent by not format anywhere but in Main.cpp

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1265 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2007-03-04 00:17:54 +00:00
parent c40d07d0a1
commit 2c9f1a13fe
2 changed files with 6 additions and 6 deletions

View File

@ -79,6 +79,11 @@ int main(int argc, char* argv[])
TRACE_ERR(endl);
}
cout.setf(std::ios::fixed);
cout.precision(5);
cerr.setf(std::ios::fixed);
cerr.precision(5);
// load data structures
Parameter *parameter = new Parameter();
if (!parameter->LoadParam(argc, argv))

View File

@ -65,8 +65,6 @@ public:
<<")\n");
TRACE_ERR("\npath statistics\n");
std::cerr.setf(std::ios::scientific);
std::cerr.precision(5);
if(path1Best.size())
{
@ -327,10 +325,7 @@ public:
if (StaticData::Instance().GetVerboseLevel() >= 2 && exPathsD.size())
{
TRACE_ERR("path stats for current CN: \n");
std::cerr.setf(std::ios::scientific);
std::cerr.precision(5);
TRACE_ERR("CN (full): ");
TRACE_ERR("path stats for current CN: \nCN (full): ");
std::transform(exPathsD.begin()+1
,exPathsD.end()
,std::ostream_iterator<double>(std::cerr," ")