Electronics Circuits & Tutorials
Electronics Circuits & Tutorials

Tutorials

     more....

Dictionaries

     more....

Projects
Home > Electronics Tutorials > C Language Tutorial > stdlib.h - Math Functions - ldiv

C Language Programming Library Reference Guide

stdlib.h - Math Functions - ldiv

Declaration: ldiv_t ldiv(long int numer, long int denom); Divides numer (numerator) by denom (denominator). The result is stored in the structure ldiv_t which has two members: long int qout;
long int rem;
Where quot is the quotient and rem is the remainder. In the case of inexact division, quot is rounded down to the nearest integer. The value numer is equal to quot * denom + rem.

The value of the division is returned in the structure.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Circuits
A B C D
E F G H
I J K L
M N O P
Q R S T
U V W X
Y Z
Discover

     more......

Copyright © 1999-2011 www.hobbyprojects.com  (All rights reserved)