lldiv man page on HP-UX

Printed from http://www.polarhome.com/service/man/?qf=lldiv&af=0&tf=2&of=HP-UX

div(3C)								       div(3C)

NAME
       div(), ldiv(), lldiv(), imaxdiv() - integer division and remainder

SYNOPSIS
DESCRIPTION
       Computes 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 result‐
		      ing quotient is the largest integer less than the magni‐
		      tude  of	the  algebraic quotient.  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.

WARNINGS
       Behavior is undefined if denom is zero.

SEE ALSO
       floor(3M), thread_safety(5).

STANDARDS CONFORMANCE
								       div(3C)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net