mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
Refs #44 : Set precision to 15 for MonteVarFixed
This commit is contained in:
parent
e263feda27
commit
c680c974f6
@ -1,11 +1,12 @@
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user