Commit | Line | Data |
---|---|---|
05dda90f C |
1 | .TH FREXP 3 "19 January 1983" |
2 | .SH NAME | |
3 | frexp, ldexp, modf \- split into mantissa and exponent | |
4 | .SH SYNOPSIS | |
5 | .nf | |
6 | .B double frexp(value, eptr) | |
7 | .B double value; | |
8 | .B int *eptr; | |
9 | .PP | |
10 | .B double ldexp(value, exp) | |
11 | .B double value; | |
12 | .PP | |
13 | .B double modf(value, iptr) | |
14 | .B double value, *iptr; | |
15 | .SH DESCRIPTION | |
16 | .I Frexp | |
17 | returns the mantissa of a double | |
18 | .I value | |
19 | as a double quantity, | |
20 | .I x, | |
21 | of magnitude less than 1 | |
22 | and stores an integer | |
23 | .I n | |
24 | such that | |
25 | .I value | |
26 | = | |
27 | \fIx\fP\|\(**\|2\u\fIn\fP\d | |
28 | indirectly through | |
29 | .I eptr. | |
30 | .PP | |
31 | .I Ldexp | |
32 | returns the quantity | |
33 | \fIvalue\|\(**\|2\u\fIexp\fP\d. | |
34 | .PP | |
35 | .I Modf | |
36 | returns the positive fractional part of | |
37 | .I value | |
38 | and stores the integer part indirectly | |
39 | through | |
40 | .I iptr. |