From c680c974f6613f7557787150425d85ed365ef49c Mon Sep 17 00:00:00 2001 From: "John M. Penn" Date: Tue, 4 Aug 2015 15:46:44 -0500 Subject: [PATCH] Refs #44 : Set precision to 15 for MonteVarFixed --- trick_source/sim_services/MonteCarlo/MonteVarFixed.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trick_source/sim_services/MonteCarlo/MonteVarFixed.cpp b/trick_source/sim_services/MonteCarlo/MonteVarFixed.cpp index fb3d5c48..fdc98a48 100644 --- a/trick_source/sim_services/MonteCarlo/MonteVarFixed.cpp +++ b/trick_source/sim_services/MonteCarlo/MonteVarFixed.cpp @@ -1,11 +1,12 @@ #include +#include #include "trick/MonteVarFixed.hh" Trick::MonteVarFixed::MonteVarFixed(std::string in_name, double in_value, std::string in_unit) { this->name = in_name; std::ostringstream string_stream; - string_stream << in_value ; + string_stream << std::setprecision(15) << in_value ; this->value = string_stream.str(); this->unit = in_unit; }