title: r exam type num: answer Inf
body: <p>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.</p>
  <p>Here is a simplified version of the exercise.</p>
  <pre><code>```{r data generation, echo = FALSE, results = &quot;hide&quot;}
  sol&lt;-Inf
  ```
  
  Question
  ========
  
  blblblbl
  
  
  Solution
  ========
  
  $x=\infty$
  
  Meta-information
  ================
  extype: num
  exsolution: `r fmt(sol, 4)`
  extol: 0.0001
  exname: prob complemento 2
  </code></pre>
  <p>Is it possible to have infinity answer in moodle numerical type question?</p>
  <p>It is important to conserve the numerical type since in some numerical rng instances the answer could be different to infinity</p>