![]() Chapter Contents |
![]() Previous |
![]() Next |
| remainder |
| Portability: | C99 |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <math.h> double remainder(double x, double y); float remainderf(float x, float y); long double remainderl(long double x, long double y);
| DESCRIPTION |
remainder produces the
remainder when the first argument, x, is divided
by the second argument, y. Both arguments
are assumed to be exact, and the division is performed exactly. The remainder
is computed using a rounded integer quotient. If the fractional part of the
quotient is 0.5, the quotient is rounded to an even value.
The function name remainderf should be
used for float arguments, and remainderl for long double
arguments. Alternately, if the header file tgmath.h
is included, remainder may be used with any
numeric argument type.
| RETURN VALUE |
remainder returns the remainder
resulting from division of x by y, if it is defined and representable.
| RELATED FUNCTIONS |
fmod, remquo
| SEE ALSO |
"Mathematical Functions" in Chapter 2, "Function Categories"
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.