title: Grails error when attempting to divide variables in GSP
body: <p>I have a page where I'm trying to divide two variables and set the result to a new variable. I can add, subtract, and multiply them, but if I try and divide them I get an error saying "Division undefined."</p>
  
  <p>I'm taking existing variables (totalProgressGoal and totalPrincGoal), fetching values from the db, and then adding them to the variables.</p>
  
  <pre><code>&lt;g:set var="gain01" value="${pdd?.dataValue}" /&gt;
  &lt;g:set var="goal01" value="${pdd?.groupGoal.goalValue}" /&gt;
  &lt;g:set var="totalProgressGoal" value="${totalProgressGoal + gain01}" /&gt;
  &lt;g:set var="totalPrincGoal" value="${totalPrincGoal + goal01}" /&gt;
  </code></pre>
  
  <p>If I try and take the updated variables and divide them, then I get the error.</p>
  
  <pre><code>&lt;g:set var="goalSuccessRatio" value="${totalProgressGoal / totalPrincGoal}"/&gt;
  </code></pre>
  
  <p>Replacing the "/" with any other operator works, and if I set totalProgressGoal and totalPrincGoal with numeric values it works. What do I need to do to divide these values?</p>
  
  <p>Clarification: The variables are set above as integers:</p>
  
  <pre><code>&lt;g:set var="totalProgressGoal" value="${0}" /&gt;
  &lt;g:set var="totalPrincGoal" value="${0}" /&gt;
  </code></pre>