FREXP(3C) UNIX Programmer's Manual FREXP(3C) NAME frexp, ldexp, modf - split into mantissa and exponent SYNOPSIS double frexp (value, eptr) double value; int *eptr; double ldexp (value, exp) double value; int exp; double modf (value, iptr) double value, *iptr; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System III DESCRIPTION _F_r_e_x_p returns the mantissa of a double _v_a_l_u_e as a double quantity, _x, of magnitude less than 1, and stores an integer _n indirecly through _e_p_t_r, such that _v_a_l_u_e = _x * 2^_n. _L_d_e_x_p returns the quantity _v_a_l_u_e * 2^_e_x_p. If this quantity overflows, then a positive or negative huge value is returned, depending on the sign of _v_a_l_u_e, and _e_r_r_n_o is set to ERANGE. If this quantity underflows then 0 is returned and _e_r_r_n_o is set to ERANGE. _M_o_d_f returns the signed fractional part of _v_a_l_u_e and stores the integer part indirectly through _i_p_t_r.