<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>

<p>You use the function the wrong way:
See function <a href="https://github.com/Masterminds/sprig/blob/bf29da0d74f74aeb5c3e3e7207eab76c28ac4049/functions.go#L182" rel="noreferrer">declaration</a>.</p>

<p>Your template should be:</p>

<pre><code>{{ div .Values.myvalue 2 }}
</code></pre>
