I have an moodle exercise where the numerical answer is Infinity. The xml file is generated without issues, however, when importing the question to moodle an R occurred.
Here is a simplified version of the exercise.
```{r data generation, echo = FALSE, results = "hide"}
sol<-Inf
```
Question
========
blblblbl
Solution
========
$x=\infty$
Meta-information
================
extype: num
exsolution: `r fmt(sol, 4)`
extol: 0.0001
exname: prob complemento 2
Is it possible to have infinity answer in moodle numerical type question?
It is important to conserve the numerical type since in some numerical rng instances the answer could be different to infinity