Query: div
OS: hpux
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
div(3C) div(3C)NAMEdiv(), ldiv(), lldiv(), imaxdiv() - integer division and remainderSYNOPSISDESCRIPTIONComputes the quotient and remainder of the division of the numerator numer by the denominator denom. If the division is inexact, the sign of the resulting quotient is that of the algebraic quotient, and the magnitude of the resulting quotient is the largest integer less than the magnitude of the algebraic quo- tient. If the result can be represented, the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Both members have type and values such that quot denom rem numer. If the result cannot be represented, the behavior is undefined. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively.WARNINGSBehavior is undefined if denom is zero.SEE ALSOfloor(3M), thread_safety(5).STANDARDS CONFORMANCEdiv(3C)
Related Man Pages |
---|
lldiv(3c) - opensolaris |
ldiv(3p) - centos |
div(3c) - hpux |
lldiv(3c) - hpux |
ldiv(3c) - sunos |