File: significand.3

package info (click to toggle)
manpages 1.70-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,704 kB
  • ctags: 7
  • sloc: perl: 162; sh: 94; makefile: 70; lisp: 22
file content (36 lines) | stat: -rw-r--r-- 824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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)