Bell 32V development
[unix-history] / usr / man / man3 / frexp.3
CommitLineData
4f88ca45
TL
1.if t .ds s \d*\u
2.if n .ds s *
3.TH FREXP 3
4.SH NAME
5frexp, 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
22returns the mantissa of a double
23.I value
24as a double quantity,
25.I x,
26of magnitude less than 1
27and stores an integer
28.I n
29such that
30.I value
31=
32\fIx\fP\|\(**\|2\u\fIn\fP\d
33indirectly through
34.I eptr.
35.PP
36.I Ldexp
37returns the quantity
38\fIvalue\|\(**\|2\u\fIexp\fP\d.
39.PP
40.I Modf
41returns the positive fractional part of
42.I value
43and stores the integer part indirectly
44through
45.I iptr.