title: Helm template arithmetic division
body: <p>Anyone tried to make an arithmetic division in <a href="https://helm.sh/" rel="noreferrer">Helm</a>? </p>
  
  <p>According to <a href="http://masterminds.github.io/sprig/math.html" rel="noreferrer">sprig/Math Functions</a>, the following should work:</p>
  
  <pre><code>{{ .Values.myvalue | div 2 }}
  </code></pre>
  
  <p>However, the result is wrong. e.g. <code>6/2 = 0</code>, <code>4/2 = 0</code>, <code>1/2 = 2</code>.</p>
  
  <p>Any hint ?</p>