BSD 4_2 development
[unix-history] / usr / man / man3 / frexp.3
CommitLineData
05dda90f
C
1.TH FREXP 3 "19 January 1983"
2.SH NAME
3frexp, 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
17returns the mantissa of a double
18.I value
19as a double quantity,
20.I x,
21of magnitude less than 1
22and stores an integer
23.I n
24such that
25.I value
26=
27\fIx\fP\|\(**\|2\u\fIn\fP\d
28indirectly through
29.I eptr.
30.PP
31.I Ldexp
32returns the quantity
33\fIvalue\|\(**\|2\u\fIexp\fP\d.
34.PP
35.I Modf
36returns the positive fractional part of
37.I value
38and stores the integer part indirectly
39through
40.I iptr.