]>
Commit | Line | Data |
---|---|---|
fea681da MK |
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 | |
63aa9df0 | 20 | .BR significand () |
fea681da MK |
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 | |
c65433e6 | 27 | scalb(x, (double) \-ilogb(x)) |
fea681da MK |
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) |