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