frexp - convert floating-point number to fractional and integral components

#include<math.h>doublefrexp(doublex,int*exp));

Thefrexp()function is used to split the numberxinto a normalized fraction and an exponent which is stored inexp.

Thefrexp()function returns the normalized fraction. If the argumentxis not zero, the normalized fraction isxtimes a power of two, and is always in the range 1/2 (inclusive) to 1 (exclusive). Ifxis zero, then the nor- malized fraction is zero and zero is stored inexp.

SVID 3, POSIX, BSD 4.3, ISO 9899

ldexp(3),modf(3)