title: Divide two variables in Twig/PHP
body: <p>I am trying to do something that I think should be very simple with Twig however I am receiving an error.</p>
  
  <p>I simply want to divide two variables ... </p>
  
  <pre><code>{% set thist1 = attribute(mD, WMData[b] ~ 'sales') %} 
  {% set thist2 = attribute(mD, WMData[b] ~ 'trans') %} 
  {% set thisDone = thist1 / thist2 %}
  </code></pre>
  
  <p>If I echo out thist1 and thist2 they are both numbers ... for example {{ thist1 }} {{ thist2 }} = 4805.05 43</p>
  
  <p>However I am receiving the below error ... </p>
  
  <pre><code>Warning: Division by zero in ~/vendor/twig/twig/lib/Twig/Environment.php(373) : eval()'d code on line 326
  </code></pre>