4.4BSD/usr/share/man/cat3/modf.0

Compare this file to the similar file:
Show the results in this format:

MODF(3)                     BSD Programmer's Manual                    MODF(3)

NNAAMMEE
     mmooddff - extract signed integral and fractional values from floating-point
     number

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<mmaatthh..hh>>

     _d_o_u_b_l_e
     mmooddff(_d_o_u_b_l_e _v_a_l_u_e, _d_o_u_b_l_e _*_i_p_t_r);

DDEESSCCRRIIPPTTIIOONN
     The mmooddff() function breaks the argument _v_a_l_u_e into integral and fraction-
     al parts, each of which has the same sign as the argument.  It stores the
     integral part as a _d_o_u_b_l_e in the object pointed to by _i_p_t_r.

RREETTUURRNN VVAALLUUEESS
     The mmooddff() function returns the signed fractional part of _v_a_l_u_e.

SSEEEE AALLSSOO
     frexp(3),  ldexp(3),  math(3)

SSTTAANNDDAARRDDSS
     The mmooddff() function conforms to ANSI C X3.159-1989 (``ANSI C '').

4.4BSD                           June 4, 1993                                1