]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/significand.3
membarrier.2: Remove redundant mention of return value of MEMBARRIER_CMD_SHARED
[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 2015-04-19 "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 .sp
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 .sp
22 Link with \fI\-lm\fP.
23 .sp
24 .in -4n
25 Feature Test Macro Requirements for glibc (see
26 .BR feature_test_macros (7)):
27 .in
28 .sp
29 .ad l
30 .BR significand (),
31 .BR significandf (),
32 .BR significandl ():
33 .RS 4
34 _SVID_SOURCE || _BSD_SOURCE
35 .RE
36 .ad b
37 .SH DESCRIPTION
38 These functions return the mantissa of
39 .I x
40 scaled to the range [1,2).
41 They are equivalent to
42 .sp
43 .in +4n
44 scalb(x, (double) \-ilogb(x))
45 .in
46 .PP
47 This function exists mainly for use in certain standardized tests
48 for IEEE 754 conformance.
49 .SH ATTRIBUTES
50 For an explanation of the terms used in this section, see
51 .BR attributes (7).
52 .TS
53 allbox;
54 lb lb lb
55 l l l.
56 Interface Attribute Value
57 T{
58 .BR significand (),
59 .br
60 .BR significandf (),
61 .br
62 .BR significandl ()
63 T} Thread safety MT-Safe
64 .TE
65
66 .SH CONFORMING TO
67 These functions are nonstandard; the
68 .I double
69 version is available on a number of other systems.
70 .\" .SH HISTORY
71 .\" This function came from BSD.
72 .SH SEE ALSO
73 .BR ilogb (3),
74 .BR scalb (3)