FMOD(3) BSD Programmer's Manual FMOD(3) NNAAMMEE ffmmoodd - floating-point remainder function SSYYNNOOPPSSIISS ##iinncclluuddee <> _d_o_u_b_l_e ffmmoodd(_d_o_u_b_l_e _x, _d_o_u_b_l_e _y); DDEESSCCRRIIPPTTIIOONN The ffmmoodd() function computes the floating-point remainder of _x/ _y. RREETTUURRNN VVAALLUUEESS The ffmmoodd() function returns the value _x_-_i_*_y, for some integer _i such that, if _y is non-zero, the result has the same sign as _x and magnitude less than the magnitude of _y. If _y is zero, whether a domain error occurs or the ffmmoodd() function returns zero is implementation-defined. SSEEEE AALLSSOO math(3) SSTTAANNDDAARRDDSS The ffmmoodd() function conforms to ANSI C X3.159-1989 (``ANSI C ''). 4.4BSD June 4, 1993 1