remquo(3) Library Functions Manual remquo(3) remquo, remquof, remquol - (libm, -lm) #include double remquo(double x, double y, int *quo); float remquof(float x, float y, int *quo); long double remquol(long double x, long double y, int *quo); glibc (. feature_test_macros(7)): remquo(), remquof(), remquol(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L x y. quo. . , remainder(3). The value stored via the quo pointer has the sign of x / y and agrees with the quotient in at least the low order 3 bits. , remquo(29.0, 3.0) -1.0 2. , integer. , , remainder(3). x y NaN, NaN. x y NaN, , NaN. y 0 x NaN, , NaN. math_error(7), , . : : x y 0, NaN. (FE_INVALID). errno. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |remquo(), remquof(), | | MT-Safe | |remquol() | | | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. glibc 2.1. C99, POSIX.1-2001. fmod(3), logb(3), remainder(3) () aereiae , Azamat Hackimov , Dmitriy S. Seregin , Katrin Kutepova , Lockal , Yuri Kozlov , , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . remquo(3)