*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> drem (3)              
Title
Content
Arch
Section
 

DREM(3)

Contents


NAME    [Toc]    [Back]

       drem - floating-point remainder function

SYNOPSIS    [Toc]    [Back]

       #include <math.h>

       double drem(double x, double y);

DESCRIPTION    [Toc]    [Back]

       The  drem()  function  computes	the remainder of dividing x by y.  The
       return value is x - n * y, where n is the quotient of x / y, rounded to
       the nearest integer.  If the quotient is 1/2, it is rounded to the even
       number.

RETURN VALUE    [Toc]    [Back]

       The drem() function returns the remainder, unless y is zero,  when  the
       function fails and errno is set.

ERRORS    [Toc]    [Back]

       EDOM   The denominator y is zero.

CONFORMING TO    [Toc]    [Back]

       BSD 4.3

SEE ALSO    [Toc]    [Back]

      
      
       fmod(3)



				  1993-06-06			       DREM(3)
[ Back ]
 Similar pages
Name OS Title
fmod FreeBSD floating-point remainder functions
remainder Tru64 Compute the floating-point remainder
fmodf FreeBSD floating-point remainder functions
drem Tru64 Compute the floating-point remainder
fmod Tru64 Compute the floating-point remainder
fmod OpenBSD floating-point remainder functions
fmodf OpenBSD floating-point remainder functions
fabsf NetBSD floating-point absolute value function
fabs NetBSD floating-point absolute value function
fpgetmask IRIX floating-point units
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service