How does Bash modulus/remainder work? : <p>Can somebody explain how it works? I just don't understand it. Why we get 2 from </p>

<pre><code>expr 5 % 3
</code></pre>

<p>or 1 from </p>

<pre><code>expr 5 % 4
</code></pre>
