den="true" tabindex="-1"></a><span class="dt">real</span> x = get_real(z);  <span class="co">// x = -1.1</span></span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="dt">real</span> y = get_imag(z);  <span class="co">// y = 2.3</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>Complex numbers can be compared using equality (or inequality), but not with greater than or less than operators. For example