]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/significand.3
fallocate.2, futex.2, getrandom.2, mprotect.2, posix_spawn.3, address_families.7...
[thirdparty/man-pages.git] / man3 / significand.3
CommitLineData
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
11significand, significandf, significandl \-
c45bd688 12get 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 22Link with \fI\-lm\fP.
68e4db0a 23.PP
cc4615cc
MK
24.in -4n
25Feature 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 39These functions return the mantissa of
fea681da
MK
40.I x
41scaled to the range [1,2).
5600f73a 42They are equivalent to
bdd915e2 43.PP
088a639b 44.in +4n
bdd915e2 45.EX
c65433e6 46scalb(x, (double) \-ilogb(x))
bdd915e2 47.EE
088a639b 48.in
fea681da
MK
49.PP
50This function exists mainly for use in certain standardized tests
51for IEEE 754 conformance.
27a42843
MS
52.SH ATTRIBUTES
53For an explanation of the terms used in this section, see
54.BR attributes (7).
55.TS
56allbox;
57lb lb lb
58l l l.
59Interface Attribute Value
60T{
61.BR significand (),
62.br
63.BR significandf (),
64.br
65.BR significandl ()
66T} Thread safety MT-Safe
67.TE
847e0d88 68.sp 1
072f467c 69.SH CONFORMING TO
c8f2dd47 70These functions are nonstandard; the
0db35627
MK
71.I double
72version 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)