]>
Commit | Line | Data |
---|---|---|
fea681da | 1 | .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) |
2297bf0e | 2 | .\" |
38f20bb9 | 3 | .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE) |
fea681da | 4 | .\" Distributed under GPL |
38f20bb9 | 5 | .\" %%%LICENSE_END |
ce347053 | 6 | .\" |
7dcae896 | 7 | .\" heavily based on glibc infopages, copyright Free Software Foundation |
ce347053 | 8 | .\" |
4b8c67d9 | 9 | .TH SIGNIFICAND 3 2017-09-15 "GNU" "Linux Programmer's Manual" |
fea681da MK |
10 | .SH NAME |
11 | significand, significandf, significandl \- | |
c45bd688 | 12 | get mantissa of floating-point number |
fea681da MK |
13 | .SH SYNOPSIS |
14 | .B #include <math.h> | |
68e4db0a | 15 | .PP |
fea681da MK |
16 | .BI "double significand(double " x ); |
17 | .br | |
18 | .BI "float significandf(float " x ); | |
19 | .br | |
20 | .BI "long double significandl(long double " x ); | |
68e4db0a | 21 | .PP |
20c58d70 | 22 | Link with \fI\-lm\fP. |
68e4db0a | 23 | .PP |
cc4615cc MK |
24 | .in -4n |
25 | Feature Test Macro Requirements for glibc (see | |
26 | .BR feature_test_macros (7)): | |
27 | .in | |
68e4db0a | 28 | .PP |
cc4615cc MK |
29 | .ad l |
30 | .BR significand (), | |
e0bf9127 | 31 | .BR significandf (), |
cc4615cc | 32 | .BR significandl (): |
23a0d415 | 33 | .RS 4 |
636ed4d5 MK |
34 | /* Since glibc 2.19: */ _DEFAULT_SOURCE |
35 | || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE | |
23a0d415 | 36 | .RE |
cc4615cc | 37 | .ad b |
fea681da | 38 | .SH DESCRIPTION |
5600f73a | 39 | These functions return the mantissa of |
fea681da MK |
40 | .I x |
41 | scaled to the range [1,2). | |
5600f73a | 42 | They are equivalent to |
bdd915e2 | 43 | .PP |
088a639b | 44 | .in +4n |
bdd915e2 | 45 | .EX |
c65433e6 | 46 | scalb(x, (double) \-ilogb(x)) |
bdd915e2 | 47 | .EE |
088a639b | 48 | .in |
fea681da MK |
49 | .PP |
50 | This function exists mainly for use in certain standardized tests | |
51 | for IEEE 754 conformance. | |
27a42843 MS |
52 | .SH ATTRIBUTES |
53 | For an explanation of the terms used in this section, see | |
54 | .BR attributes (7). | |
55 | .TS | |
56 | allbox; | |
57 | lb lb lb | |
58 | l l l. | |
59 | Interface Attribute Value | |
60 | T{ | |
61 | .BR significand (), | |
62 | .br | |
63 | .BR significandf (), | |
64 | .br | |
65 | .BR significandl () | |
66 | T} Thread safety MT-Safe | |
67 | .TE | |
847e0d88 | 68 | .sp 1 |
072f467c | 69 | .SH CONFORMING TO |
c8f2dd47 | 70 | These functions are nonstandard; the |
0db35627 MK |
71 | .I double |
72 | version is available on a number of other systems. | |
889829be MK |
73 | .\" .SH HISTORY |
74 | .\" This function came from BSD. | |
47297adb | 75 | .SH SEE ALSO |
fea681da MK |
76 | .BR ilogb (3), |
77 | .BR scalb (3) |