Browse Source

using max_digits10 to increase precision enough to uniquely identify double (as proposed by Joachim)

tempestpy_adaptions
dehnert 7 years ago
parent
commit
844608488a
  1. 2
      src/storm/storage/expressions/ToExprtkStringVisitor.cpp

2
src/storm/storage/expressions/ToExprtkStringVisitor.cpp

@ -220,7 +220,7 @@ namespace storm {
}
boost::any ToExprtkStringVisitor::visit(RationalLiteralExpression const& expression, boost::any const&) {
stream << std::setprecision(15) << "(" << expression.getValueAsDouble() << ")";
stream << std::scientific << std::setprecision(std::numeric_limits<double>::max_digits10) << "(" << expression.getValueAsDouble() << ")";
return boost::any();
}
}

Loading…
Cancel
Save