Format DOUBLE as a fixed floating point number
previous format: 1.20758e+06 0.370689 0.00014128 new format: 1207583.000 0.371 0.000 Change-Id: I00f41d841e5e62c4b25dc5e646b6487449773e01 Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
committed by
Dmitrii Galantsev
parent
35edaa2322
commit
4d35ff6092
@@ -25,6 +25,7 @@ THE SOFTWARE.
|
||||
#include <signal.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <iomanip>
|
||||
#include <unordered_map>
|
||||
@@ -569,6 +570,7 @@ void RdciDmonSubSystem::process() {
|
||||
<< value.value.l_int;
|
||||
} else if (value.type == DOUBLE) {
|
||||
std::cout << std::left << std::setw(20)
|
||||
<< std::fixed << std::setprecision(3)
|
||||
<< value.value.dbl;
|
||||
} else {
|
||||
std::cout << std::left << std::setw(20)
|
||||
|
||||
Reference in New Issue
Block a user