]>
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 | |
cc4615cc | 4 | .TH SIGNIFICAND 3 2007-07-26 "GNU" "Linux Programmer's Manual" |
fea681da MK |
5 | .SH NAME |
6 | significand, significandf, significandl \- | |
7 | get mantissa of floating point number | |
8 | .SH SYNOPSIS | |
9 | .B #include <math.h> | |
c13182ef | 10 | .sp |
fea681da MK |
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 | |
e9329f6d | 17 | Link with \fI-lm\fP. |
cc4615cc MK |
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 | |
fea681da MK |
30 | .SH DESCRIPTION |
31 | The | |
63aa9df0 | 32 | .BR significand () |
fea681da MK |
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 +8 | |
c65433e6 | 39 | scalb(x, (double) \-ilogb(x)) |
fea681da MK |
40 | .in -8 |
41 | .PP | |
42 | This function exists mainly for use in certain standardized tests | |
43 | for IEEE 754 conformance. | |
889829be MK |
44 | .\" .SH HISTORY |
45 | .\" This function came from BSD. | |
fea681da MK |
46 | .SH "SEE ALSO" |
47 | .BR ilogb (3), | |
48 | .BR scalb (3) |