1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" based on glibc infopages
5 .TH REMQUO 3 2007-07-26 "GNU" "Linux Programmer's Manual"
7 remquo, remquof, remquol \- remainder and part of quotient
12 .BI "double remquo(double " x ", double " y ", int *" quo );
14 .BI "float remquof(float " x ", float " y ", int *" quo );
16 .BI "long double remquol(long double " x ", long double " y ", int *" quo );
22 Feature Test Macro Requirements for glibc (see
23 .BR feature_test_macros (7)):
30 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
34 These functions compute the remainder and part of the quotient
39 A few bits of the quotient are stored via the
42 The remainder is returned as function value.
44 The value of the remainder is the same as that computed by the
48 The value stored via the
50 pointer has the sign of
52 and agrees with the quotient in at least the low order 3 bits.
54 For example, remquo(29.0,3.0) returns \-1.0 and might store 2.
55 Note that the actual quotient might not fit in an integer.
56 .\" A possible application of this function might be the computation
57 .\" of sin(x). Compute remquo(x, pi/2, &quo) or so.
59 .\" glibc, UnixWare: return 3 bits
60 .\" MacOS 10: return 7 bits