Currently At: Programming Reference > C Reference > Standard C Math > ldiv()

ldiv()


Syntax:
#include <stdlib.h>
ldiv_t ldiv( long numerator, long denominator );


Description:
The ldiv() function returns the quotient and remainder of the operation numerator / denominator. The ldiv_t structure is defined in stdlib.h and has at least:

long quot; // the quotient
long rem; // the remainder


Related Topics:
div()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions