]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
fea681da | 2 | .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) |
2297bf0e | 3 | .\" |
95fb8859 | 4 | .\" SPDX-License-Identifier: GPL-1.0-or-later |
ce347053 | 5 | .\" |
7dcae896 | 6 | .\" heavily based on glibc infopages, copyright Free Software Foundation |
ce347053 | 7 | .\" |
4c1c5274 | 8 | .TH significand 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
9 | .SH NAME |
10 | significand, significandf, significandl \- | |
c45bd688 | 11 | get mantissa of floating-point number |
d4aa4b86 AC |
12 | .SH LIBRARY |
13 | Math library | |
8fc3b2cf | 14 | .RI ( libm ", " \-lm ) |
fea681da | 15 | .SH SYNOPSIS |
c7db92b9 | 16 | .nf |
fea681da | 17 | .B #include <math.h> |
c6d039a3 | 18 | .P |
fea681da | 19 | .BI "double significand(double " x ); |
fea681da | 20 | .BI "float significandf(float " x ); |
fea681da | 21 | .BI "long double significandl(long double " x ); |
c7db92b9 | 22 | .fi |
c6d039a3 | 23 | .P |
d39ad78f | 24 | .RS -4 |
cc4615cc MK |
25 | Feature Test Macro Requirements for glibc (see |
26 | .BR feature_test_macros (7)): | |
d39ad78f | 27 | .RE |
c6d039a3 | 28 | .P |
cc4615cc | 29 | .BR significand (), |
e0bf9127 | 30 | .BR significandf (), |
cc4615cc | 31 | .BR significandl (): |
9d2adbae MK |
32 | .nf |
33 | /* Since glibc 2.19: */ _DEFAULT_SOURCE | |
75c018a1 | 34 | || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE |
9d2adbae | 35 | .fi |
fea681da | 36 | .SH DESCRIPTION |
5600f73a | 37 | These functions return the mantissa of |
fea681da | 38 | .I x |
9029431d AC |
39 | scaled to the range |
40 | .RB [ 1 ,\~ FLT_RADIX ). | |
5600f73a | 41 | They are equivalent to |
c6d039a3 | 42 | .P |
088a639b | 43 | .in +4n |
bdd915e2 | 44 | .EX |
c65433e6 | 45 | scalb(x, (double) \-ilogb(x)) |
bdd915e2 | 46 | .EE |
088a639b | 47 | .in |
c6d039a3 | 48 | .P |
fea681da MK |
49 | This function exists mainly for use in certain standardized tests |
50 | for IEEE 754 conformance. | |
27a42843 MS |
51 | .SH ATTRIBUTES |
52 | For an explanation of the terms used in this section, see | |
53 | .BR attributes (7). | |
54 | .TS | |
55 | allbox; | |
c466875e | 56 | lbx lb lb |
27a42843 MS |
57 | l l l. |
58 | Interface Attribute Value | |
59 | T{ | |
9e54434e BR |
60 | .na |
61 | .nh | |
27a42843 | 62 | .BR significand (), |
27a42843 | 63 | .BR significandf (), |
27a42843 MS |
64 | .BR significandl () |
65 | T} Thread safety MT-Safe | |
66 | .TE | |
3113c7f3 | 67 | .SH STANDARDS |
4131356c AC |
68 | None. |
69 | .TP | |
70 | .BR significand () | |
71 | BSD. | |
72 | .SH HISTORY | |
73 | .TP | |
74 | .BR significand () | |
75 | BSD. | |
47297adb | 76 | .SH SEE ALSO |
fea681da MK |
77 | .BR ilogb (3), |
78 | .BR scalb (3) |