diff --git a/src/storm-parsers/parser/JaniParser.cpp b/src/storm-parsers/parser/JaniParser.cpp index a5cc1c792..202a8931e 100644 --- a/src/storm-parsers/parser/JaniParser.cpp +++ b/src/storm-parsers/parser/JaniParser.cpp @@ -1004,9 +1004,7 @@ namespace storm { } else if (expressionStructure.is_number_integer()) { return expressionManager->integer(expressionStructure.get()); } else if (expressionStructure.is_number_float()) { - // For now, just take the double. - // TODO make this a rational number - return expressionManager->rational(expressionStructure.get()); + return expressionManager->rational(storm::utility::convertNumber(expressionStructure.dump())); } else if (expressionStructure.is_string()) { std::string ident = expressionStructure.get(); return storm::expressions::Expression(getVariableOrConstantExpression(ident, scope, auxiliaryVariables));