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
|
2007-07-08 12:11:40 +00:00
|
|
|
.TH SIGNIFICAND 3 2007-07-26 "GNU" "Linux Programmer's Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
|
|
|
significand, significandf, significandl \-
|
2008-07-23 02:57:20 +00:00
|
|
|
get mantissa of floating-point number
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <math.h>
|
2007-04-12 22:42:49 +00:00
|
|
|
.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.
|
2007-07-08 12:11:40 +00:00
|
|
|
.sp
|
|
|
|
.in -4n
|
|
|
|
Feature Test Macro Requirements for glibc (see
|
|
|
|
.BR feature_test_macros (7)):
|
|
|
|
.in
|
|
|
|
.sp
|
|
|
|
.ad l
|
|
|
|
.BR significand (),
|
2007-07-08 12:39:24 +00:00
|
|
|
.BR significandf (),
|
2007-07-08 12:11:40 +00:00
|
|
|
.BR significandl ():
|
|
|
|
_SVID_SOURCE || _BSD_SOURCE
|
|
|
|
.ad b
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
The
|
2005-10-19 07:07:02 +00:00
|
|
|
.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
|
2007-12-19 06:57:44 +00:00
|
|
|
.in +4n
|
2005-07-06 08:00:30 +00:00
|
|
|
scalb(x, (double) \-ilogb(x))
|
2007-12-19 06:57:44 +00:00
|
|
|
.in
|
2004-11-03 13:51:07 +00:00
|
|
|
.PP
|
|
|
|
This function exists mainly for use in certain standardized tests
|
|
|
|
for IEEE 754 conformance.
|
2007-05-18 11:59:14 +00:00
|
|
|
.\" .SH HISTORY
|
|
|
|
.\" This function came from BSD.
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR ilogb (3),
|
|
|
|
.BR scalb (3)
|