de><span class="keyword">val</span> srem : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Take the remainder of the signed division. Result is of the same size as the inputs.</p><p><code> a = sdiv a b * b + srem a b </code></p><p>Throw <a href="index.html#exception-SizeMismatch"><code>SizeMismatch</code></a> if sizes differ.</p><p>Throw <code>Division_by_zero</code> if there is a division b