Debian Codegraph @

upstream/debian-unstable/man3/significand.3

raw
1 '\" t
2 .\" Copyright, Free Software Foundation
3 .\" Copyright 2002, Walter Harms <[email protected]>
4 .\" Copyright, the authors of the Linux man-pages project
5 .\"
6 .\" SPDX-License-Identifier: GPL-1.0-or-later
7 .\"
8 .TH significand 3 2026-02-08 "Linux man-pages 6.18"
9 .SH NAME
10 significand, significandf, significandl \-
11 get mantissa of floating-point number
12 .SH LIBRARY
13 Math library
14 .RI ( libm ,\~ \-lm )
15 .SH SYNOPSIS
16 .nf
17 .B #include <math.h>
18 .P
19 .BI "double significand(double " x );
20 .BI "float significandf(float " x );
21 .BI "long double significandl(long double " x );
22 .fi
23 .P
24 .RS -4
25 Feature Test Macro Requirements for glibc (see
26 .BR feature_test_macros (7)):
27 .RE
28 .P
29 .BR significand (),
30 .BR significandf (),
31 .BR significandl ():
32 .nf
33 /* Since glibc 2.19: */ _DEFAULT_SOURCE
34 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
35 .fi
36 .SH DESCRIPTION
37 These functions return the mantissa of
38 .I x
39 scaled to the range
40 .RB [ 1 ,\~ FLT_RADIX ).
41 They are equivalent to
42 .P
43 .in +4n
44 .EX
45 scalb(x, (double) \-ilogb(x))
46 .EE
47 .in
48 .P
49 This function exists mainly for use in certain standardized tests
50 for IEEE 754 conformance.
51 .SH ATTRIBUTES
52 For an explanation of the terms used in this section, see
53 .BR attributes (7).
54 .TS
55 allbox;
56 lbx lb lb
57 l l l.
58 Interface Attribute Value
59 T{
60 .na
61 .nh
62 .BR significand (),
63 .BR significandf (),
64 .BR significandl ()
65 T} Thread safety MT-Safe
66 .TE
67 .SH STANDARDS
68 None.
69 .TP
70 .BR significand ()
71 BSD.
72 .SH HISTORY
73 .TP
74 .BR significand ()
75 BSD.
76 .SH SEE ALSO
77 .BR ilogb (3),
78 .BR scalb (3)