Is there any math utility method to calculate the following expression?
<p>Is there any math utility method to calculate the following expression? Basically, I need to find the largest integer less than or equal to x which can be divided by N evenly.</p>

<pre><code>  x - x % N; // N is an integer.
</code></pre>
