- Document frexpf().

- Neither frexp() nor frexpf() set errno.
- Although frexp() is in libc for backwards compatibility, frexpf() is
  in its proper place in libm.  Document both as being in libm.
- The frexp() and frexpf() functions conform to C99.
This commit is contained in:
David Schultz 2005-01-23 16:49:40 +00:00
parent e4d1918415
commit 6f1dd8edc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140672

View File

@ -36,31 +36,33 @@
.\" @(#)frexp.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
.Dd June 4, 1993
.Dd January 23, 2005
.Dt FREXP 3
.Os
.Sh NAME
.Nm frexp
.Nd convert floating-point number to fractional and integral components
.Sh LIBRARY
.Lb libc
.Lb libm
.Sh SYNOPSIS
.In math.h
.Ft double
.Fn frexp "double value" "int *exp"
.Ft double
.Fn frexpf "float value" "int *exp"
.Sh DESCRIPTION
The
.Fn frexp
function breaks a floating-point number into a normalized
and
.Fn frexpf
functions break a floating-point number into a normalized
fraction and an integral power of 2.
It stores the integer in the
They store the integer in the
.Vt int
object pointed to by
.Fa exp .
.Sh RETURN VALUES
The
.Fn frexp
function returns the value
These functions return the value
.Va x ,
such that
.Va x
@ -84,5 +86,7 @@ is zero, both parts of the result are zero.
.Sh STANDARDS
The
.Fn frexp
function conforms to
.St -isoC .
and
.Fn frexpf
functions conform to
.St -isoC-99 .