]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/significand.3
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
[thirdparty/man-pages.git] / man3 / significand.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" Distributed under GPL
5 .\" %%%LICENSE_END
6 .\"
7 .\" heavily based on glibc infopages, copyright Free Software Foundation
8 .\"
9 .TH SIGNIFICAND 3 2017-09-15 "GNU" "Linux Programmer's Manual"
10 .SH NAME
11 significand, significandf, significandl \-
12 get mantissa of floating-point number
13 .SH SYNOPSIS
14 .B #include <math.h>
15 .PP
16 .BI "double significand(double " x );
17 .br
18 .BI "float significandf(float " x );
19 .br
20 .BI "long double significandl(long double " x );
21 .PP
22 Link with \fI\-lm\fP.
23 .PP
24 .in -4n
25 Feature Test Macro Requirements for glibc (see
26 .BR feature_test_macros (7)):
27 .in
28 .PP
29 .ad l
30 .BR significand (),
31 .BR significandf (),
32 .BR significandl ():
33 .RS 4
34 /* Since glibc 2.19: */ _DEFAULT_SOURCE
35 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
36 .RE
37 .ad b
38 .SH DESCRIPTION
39 These functions return the mantissa of
40 .I x
41 scaled to the range [1,2).
42 They are equivalent to
43 .PP
44 .in +4n
45 .EX
46 scalb(x, (double) \-ilogb(x))
47 .EE
48 .in
49 .PP
50 This function exists mainly for use in certain standardized tests
51 for IEEE 754 conformance.
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
68 .sp 1
69 .SH CONFORMING TO
70 These functions are nonstandard; the
71 .I double
72 version is available on a number of other systems.
73 .\" .SH HISTORY
74 .\" This function came from BSD.
75 .SH SEE ALSO
76 .BR ilogb (3),
77 .BR scalb (3)