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