cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float remainderf (float x, float y); extern double remainder (double x, double y); extern long double remainderl (long double x, long double y); extern __float80 remainderw (__float80 x, __float80 y); extern __float128 remainderq (__float128 x, __float128 y); extern long_long_double remainderll (long_long_double x, long_long_double y); extern decimal_float remainderdf (decimal_float x, decimal_float y); extern decimal_double remainderd (decimal_double x, decimal_double y); extern decimal_long_double remainderdl (decimal_long_double x, decimal_long_double y); extern decimal_long_long_double remainderdll (decimal_long_long_double x, decimal_long_long_double y);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
Unlike fmod(x,y), the sign of remainder(x,y) may differ from that of x.
Caution: When the quotient x / y is of large magnitude, the computation can take a relatively long time (many thousands of floating-point instructions).