 stan"><span id="cb82-1"><a href="compound-variable-declaration-and-definition.html#cb82-1" aria-hidden="true" tabindex="-1"></a><span class="dt">real</span> sum = <span class="dv">0</span>;</span></code></pre></div>
<p>even though <code>0</code> is of type <code>int</code> and <code>sum</code> is of type <code>real</code>, because
integer-typed scalar expressions can be assigned to real-valued scalar
variables. In all other cases, the type of the expression on the
right-hand side of the assignment must be 