="true" tabindex="-1"></a>}</span></code></pre></div>
</div>
<div id="promoting-real-to-complex" class="section level3" number="5.3.2">
<h3><span class="header-section-number">5.3.2</span> Promoting real to complex</h3>
<p>Expressions of type <code>real</code> may be assigned to variables of type
<code>complex</code>. For example, the following is a valid sequence of Stan
statements.</p>
<div class="sourceCode" id="cb13"><pre class="sourceCode stan"><code class="sourceCode stan"><span id="cb13-1"><a href="c