man-pages/man3/significand.3

49 lines
1.0 KiB
Groff
Raw Normal View History

2004-11-03 13:51:07 +00:00
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
.\" Distributed under GPL
.\" based on glibc infopages
.TH SIGNIFICAND 3 2007-07-26 "GNU" "Linux Programmer's Manual"
2004-11-03 13:51:07 +00:00
.SH NAME
significand, significandf, significandl \-
get mantissa of floating point number
.SH SYNOPSIS
.B #include <math.h>
.sp
2004-11-03 13:51:07 +00:00
.BI "double significand(double " x );
.br
.BI "float significandf(float " x );
.br
.BI "long double significandl(long double " x );
.sp
2007-07-21 05:25:03 +00:00
Link with \fI\-lm\fP.
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR significand (),
.BR significandf (),
.BR significandl ():
_SVID_SOURCE || _BSD_SOURCE
.ad b
2004-11-03 13:51:07 +00:00
.SH DESCRIPTION
The
.BR significand ()
2004-11-03 13:51:07 +00:00
function returns the mantissa of
.I x
scaled to the range [1,2).
It is equivalent to
.sp
.in +4n
2005-07-06 08:00:30 +00:00
scalb(x, (double) \-ilogb(x))
.in
2004-11-03 13:51:07 +00:00
.PP
This function exists mainly for use in certain standardized tests
for IEEE 754 conformance.
.\" .SH HISTORY
.\" This function came from BSD.
2004-11-03 13:51:07 +00:00
.SH "SEE ALSO"
.BR ilogb (3),
.BR scalb (3)