1FREXP(3) Library Functions Manual FREXP(3)
2
3
4
6 frexp, ldexp, modf - split into mantissa and exponent
7
9 double frexp(value, eptr)
10 double value;
11 int *eptr;
12
13 double ldexp(value, exp)
14 double value;
15
16 double modf(value, iptr)
17 double value, *iptr;
18
20 Frexp returns the mantissa of a double value as a double quantity, x,
21 of magnitude less than 1 and stores an integer n such that value =
22 x*2**n indirectly through eptr.
23
24 Ldexp returns the quantity value*2**exp.
25
26 Modf returns the positive fractional part of value and stores the inte‐
27 ger part indirectly through iptr.
28
29
30
31 FREXP(3)