Browse Source

increasing precision for rational to ExprTk rational literal conversion

tempestpy_adaptions
dehnert 7 years ago
parent
commit
533e48bdbc
  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&) { boost::any ToExprtkStringVisitor::visit(RationalLiteralExpression const& expression, boost::any const&) {
stream << "(" << expression.getValueAsDouble() << ")";
stream << std::setprecision(15) << "(" << expression.getValueAsDouble() << ")";
return boost::any(); return boost::any();
} }
} }

Loading…
Cancel
Save