diff --git a/src/storm/storage/expressions/ToExprtkStringVisitor.cpp b/src/storm/storage/expressions/ToExprtkStringVisitor.cpp index 2feb06290..b3b0df9c3 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 << std::setprecision(15) << "(" << expression.getValueAsDouble() << ")"; + stream << std::scientific << std::setprecision(std::numeric_limits::max_digits10) << "(" << expression.getValueAsDouble() << ")"; return boost::any(); } }