diff options
Diffstat (limited to 'man3/significand.3')
-rw-r--r-- | man3/significand.3 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/man3/significand.3 b/man3/significand.3 new file mode 100644 index 000000000..0bd2d34c4 --- /dev/null +++ b/man3/significand.3 @@ -0,0 +1,36 @@ +.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) +.\" Distributed under GPL +.\" based on glibc infopages +.TH SIGNIFICAND 3 2002-08-10 "gnu" "Linux Programmer's Manual" +.SH NAME +significand, significandf, significandl \- +get mantissa of floating point number +.SH SYNOPSIS +.B #include <math.h> +.sp +.BI "double significand(double " x ); +.br +.BI "float significandf(float " x ); +.br +.BI "long double significandl(long double " x ); +.sp +Link with \-lm. +.SH DESCRIPTION +The +.B significand() +function returns the mantissa of +.I x +scaled to the range [1,2). +It is equivalent to +.sp +.in +8 +scalb(x, (double) -ilogb(x)) +.in -8 +.PP +This function exists mainly for use in certain standardized tests +for IEEE 754 conformance. +.SH HISTORY +This function came from BSD. +.SH "SEE ALSO" +.BR ilogb (3), +.BR scalb (3) |