From 533e48bdbcfd975c2b6978871b8080110aa3e21f Mon Sep 17 00:00:00 2001 From: dehnert Date: Thu, 12 Apr 2018 14:12:46 +0200 Subject: [PATCH] increasing precision for rational to ExprTk rational literal conversion --- src/storm/storage/expressions/ToExprtkStringVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storm/storage/expressions/ToExprtkStringVisitor.cpp b/src/storm/storage/expressions/ToExprtkStringVisitor.cpp index 82d489d2b..2feb06290 100644 --- a/src/storm/storage/expressions/ToExprtkStringVisitor.cpp +++ b/src/storm/storage/expressions/ToExprtkStringVisitor.cpp @@ -220,7 +220,7 @@ namespace storm { } boost::any ToExprtkStringVisitor::visit(RationalLiteralExpression const& expression, boost::any const&) { - stream << "(" << expression.getValueAsDouble() << ")"; + stream << std::setprecision(15) << "(" << expression.getValueAsDouble() << ")"; return boost::any(); } }