<br clear="all">Hai,<br><br>I have the following requirement. a, b are positive integers and a&gt;b. <br>To find Floor( a/b ) and Ceil ( a/b ) efficiently, when b does not divide a.<br><br>I am aware that gmp has floor and ceil functions. Where can I find the algorithm used by GMP to find floor and ceil for the above case?<br>
<br>Thank you,<br>Sarad.<br>