]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/significand.3
Fix inconsistencies in .TH lines
[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 2002-08-10 "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 \-lm.
18 .SH DESCRIPTION
19 The
20 .BR significand ()
21 function returns the mantissa of
22 .I x
23 scaled to the range [1,2).
24 It is equivalent to
25 .sp
26 .in +8
27 scalb(x, (double) \-ilogb(x))
28 .in -8
29 .PP
30 This function exists mainly for use in certain standardized tests
31 for IEEE 754 conformance.
32 .SH HISTORY
33 This function came from BSD.
34 .SH "SEE ALSO"
35 .BR ilogb (3),
36 .BR scalb (3)