How to wrap this value?
<p>Example: I have a <strong>scale between 1 and 7</strong>. When I get a value like 8, I want it to be wrapped on that scale so it's converted to 1. More examples:</p>

<ul>
<li>1 results in 1</li>
<li>5 results in 5</li>
<li>7 results in 7</li>
<li>8 results in 1</li>
<li>9 results in 2</li>
<li>10 results in 3</li>
<li>11 results in 4</li>
<li>12 results in 5</li>
<li>13 results in 6</li>
<li>14 results in 7</li>
<li>15 results in 1</li>
<li>16 results in 2</li>
</ul>

<p>and so on.</p>

<p>Is there a method or useful C-function to do that? Something tells me I just need a modulo. It's 42°C in my room. My brain is like soap.</p>
