1frexp(3M)               Mathematical Library Functions               frexp(3M)
2
3
4

NAME

6       frexp,  frexpf, frexpl - extract mantissa and exponent from a floating-
7       point number
8

SYNOPSIS

10       c99 [ flag... ] file... -lm [ library... ]
11       #include <math.h>
12
13       double frexp(double num, int *exp);
14
15
16       float frexpf(float num, int *exp);
17
18
19       long double frexpl(long double num, int *exp);
20
21

DESCRIPTION

23       These functions break a floating-point number into a  normalized  frac‐
24       tion and an integral power of 2. They store the integer exponent in the
25       int object pointed to by exp.
26

RETURN VALUES

28       For finite arguments, these functions return the value x, such  that  x
29       is  a double with magnitude in the interval [½, 1) or 0, and num equals
30       x times 2 raised to the power *exp.
31
32
33       If num is NaN, NaN is returned and the value of *exp is unspecified.
34
35
36       If num is ± 0, ± 0 is returned and the value of *exp is 0.
37
38
39       If num is ±Inf, num is returned and the value of *exp is unspecified.
40

ATTRIBUTES

42       See attributes(5) for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │Interface Stability          │Standard                     │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │MT-Level                     │MT-Safe                      │
53       └─────────────────────────────┴─────────────────────────────┘
54

SEE ALSO

56       isnan(3M), ldexp(3M), modf(3M), attributes(5), standards(5)
57
58
59
60SunOS 5.11                        12 Jul 2006                        frexp(3M)
Impressum