FREXP(3) BSD Programmer's Manual FREXP(3) NNAAMMEE ffrreexxpp - convert floating-point number to fractional and integral compo- nents SSYYNNOOPPSSIISS ##iinncclluuddee <<mmaatthh..hh>> _d_o_u_b_l_e ffrreexxpp(_d_o_u_b_l_e _v_a_l_u_e, _i_n_t _*_e_x_p); DDEESSCCRRIIPPTTIIOONN The ffrreexxpp() function breaks a floating-point number into a normalized fraction and an integral power of 2. It stores the integer in the _i_n_t object pointed to by _e_x_p. RREETTUURRNN VVAALLUUEESS The ffrreexxpp() function returns the value _x, such that _x is a _d_o_u_b_l_e with magnitude in the interval [1/2, 1] or zero, and _v_a_l_u_e equals _x times 2 raised to the power _*_e_x_p. If _v_a_l_u_e is zero, both parts of the result are zero. SSEEEE AALLSSOO ldexp(3), modf(3), math(3) SSTTAANNDDAARRDDSS The ffrreexxpp() function conforms to ANSI C X3.159-1989 (``ANSI C ''). 4.4BSD June 4, 1993 1