1REMQUO(3) Linux Programmer's Manual REMQUO(3)
2
3
4
6 remquo, remquof, remquol - remainder and part of quotient
7
9 #define _ISOC99_SOURCE
10 #include <math.h>
11
12 double remquo(double x, double y, int *quo);
13 float remquof(float x, float y, int *quo);
14 long double remquol(long double x, long double y, int *quo);
15
16
18 These functions compute the remainder and part of the quotient upon
19 division of x by y. A few bits of the quotient are stored via the quo
20 pointer. The remainder is returned as function value.
21
22 The value of the remainder is the same as that computed by the remainā
23 der(3) function.
24
25 The value stored via the quo pointer has the sign of x/y and agrees
26 with the quotient in at least the low order 3 bits.
27
28 For example, remquo(29.0,3.0) returns -1.0 and might store 2. Note
29 that the actual quotient might not fit in an integer.
30
31
33 C99
34
36 fmod(3), logb(3), remainder(3), feature_test_macros(7)
37
38
39
40gnu 2002-08-10 REMQUO(3)