1significand(3) Library Functions Manual significand(3)
2
3
4
6 significand, significandf, significandl - get mantissa of floating-
7 point number
8
10 Math library (libm, -lm)
11
13 #include <math.h>
14
15 double significand(double x);
16 float significandf(float x);
17 long double significandl(long double x);
18
19 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
20
21 significand(), significandf(), significandl():
22 /* Since glibc 2.19: */ _DEFAULT_SOURCE
23 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24
26 These functions return the mantissa of x scaled to the range [1,2).
27 They are equivalent to
28
29 scalb(x, (double) -ilogb(x))
30
31 This function exists mainly for use in certain standardized tests for
32 IEEE 754 conformance.
33
35 For an explanation of the terms used in this section, see at‐
36 tributes(7).
37
38 ┌────────────────────────────────────────────┬───────────────┬─────────┐
39 │Interface │ Attribute │ Value │
40 ├────────────────────────────────────────────┼───────────────┼─────────┤
41 │significand(), significandf(), │ Thread safety │ MT-Safe │
42 │significandl() │ │ │
43 └────────────────────────────────────────────┴───────────────┴─────────┘
44
46 None.
47
48 significand()
49 BSD.
50
52 significand()
53 BSD.
54
56 ilogb(3), scalb(3)
57
58
59
60Linux man-pages 6.04 2023-03-30 significand(3)