~ubuntu-branches/ubuntu/precise/manpages-posix/precise

1 by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages.
1
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved 
2 by Francesco Paolo Lovergine
* Alligned to linux main manpages edition.
2
.TH "FREXP" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
1 by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages.
3
.\" frexp 
4
.SH NAME
5
frexp, frexpf, frexpl \- extract mantissa and exponent from a double
6
precision number
7
.SH SYNOPSIS
8
.LP
9
\fB#include <math.h>
10
.br
11
.sp
12
double frexp(double\fP \fInum\fP\fB, int *\fP\fIexp\fP\fB);
13
.br
14
float frexpf(float\fP \fInum\fP\fB, int *\fP\fIexp\fP\fB);
15
.br
16
long double frexpl(long double\fP \fInum\fP\fB, int *\fP\fIexp\fP\fB);
17
.br
18
\fP
19
.SH DESCRIPTION
20
.LP
21
These functions shall break a floating-point number \fInum\fP into
22
a normalized fraction and an integral power of 2. The
23
integer exponent shall be stored in the \fBint\fP object pointed to
24
by \fIexp\fP.
25
.SH RETURN VALUE
26
.LP
27
For finite arguments, these functions shall return the value \fIx\fP,
28
such that \fIx\fP has a magnitude in the interval
29
[0.5,1) or 0, and \fInum\fP equals \fIx\fP times 2 raised to the power
30
*\fIexp\fP.
31
.LP
32
If
33
\fInum\fP is NaN, a NaN shall be returned, and the value of *\fIexp\fP
34
is unspecified.
35
.LP
36
If \fInum\fP is \(+-0, \(+-0 shall be returned, and the value of *\fIexp\fP
37
shall be 0.
38
.LP
39
If \fInum\fP is \(+-Inf, \fInum\fP shall be returned, and the value
40
of *\fIexp\fP is unspecified. 
41
.SH ERRORS
42
.LP
43
No errors are defined.
44
.LP
45
\fIThe following sections are informative.\fP
46
.SH EXAMPLES
47
.LP
48
None.
49
.SH APPLICATION USAGE
50
.LP
51
None.
52
.SH RATIONALE
53
.LP
54
None.
55
.SH FUTURE DIRECTIONS
56
.LP
57
None.
58
.SH SEE ALSO
59
.LP
60
\fIisnan\fP() , \fIldexp\fP() , \fImodf\fP() , the
61
Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<math.h>\fP
62
.SH COPYRIGHT
63
Portions of this text are reprinted and reproduced in electronic form
64
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
65
-- Portable Operating System Interface (POSIX), The Open Group Base
66
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
67
Electrical and Electronics Engineers, Inc and The Open Group. In the
68
event of any discrepancy between this version and the original IEEE and
69
The Open Group Standard, the original IEEE and The Open Group Standard
70
is the referee document. The original Standard can be obtained online at
71
http://www.opengroup.org/unix/online.html .