]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/significand.3
Make the standard indent for code samples, shell session
[thirdparty/man-pages.git] / man3 / significand.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" based on glibc infopages
4 .TH SIGNIFICAND 3 2007-07-26 "GNU" "Linux Programmer's Manual"
5 .SH NAME
6 significand, significandf, significandl \-
7 get mantissa of floating point number
8 .SH SYNOPSIS
9 .B #include <math.h>
10 .sp
11 .BI "double significand(double " x );
12 .br
13 .BI "float significandf(float " x );
14 .br
15 .BI "long double significandl(long double " x );
16 .sp
17 Link with \fI\-lm\fP.
18 .sp
19 .in -4n
20 Feature Test Macro Requirements for glibc (see
21 .BR feature_test_macros (7)):
22 .in
23 .sp
24 .ad l
25 .BR significand (),
26 .BR significandf (),
27 .BR significandl ():
28 _SVID_SOURCE || _BSD_SOURCE
29 .ad b
30 .SH DESCRIPTION
31 The
32 .BR significand ()
33 function returns the mantissa of
34 .I x
35 scaled to the range [1,2).
36 It is equivalent to
37 .sp
38 .in +4n
39 scalb(x, (double) \-ilogb(x))
40 .in
41 .PP
42 This function exists mainly for use in certain standardized tests
43 for IEEE 754 conformance.
44 .\" .SH HISTORY
45 .\" This function came from BSD.
46 .SH "SEE ALSO"
47 .BR ilogb (3),
48 .BR scalb (3)