Manpage of FREXP

Google
Web www.fiveanddime.net

FREXP

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

1.16 `frexp', `frexpf'--split floating-point number

 

SYNOPSIS


     #include <math.h>
     double frexp(double VAL, int *EXP);
     float frexpf(float VAL, int *EXP);  

DESCRIPTION

All nonzero, normal numbers can be described as M * 2**P. `frexp' represents the double VAL as a mantissa M and a power of two P. The resulting mantissa will always be greater than or equal to `0.5', and less than `1.0' (as long as VAL is nonzero). The power of two will be stored in `*'EXP.


   M and P are calculated so that VAL is M times `2' to the power P.


   `frexpf' is identical, other than taking and returning floats rather than doubles.

 

RETURNS

`frexp' returns the mantissa M. If VAL is `0', infinity, or Nan, `frexp' will set `*'EXP to `0' and return VAL.

 

PORTABILITY

`frexp' is ANSI. `frexpf' is an extension.

 

SEE ALSO

frexp is part of the libm library. The full documentation for libm is maintained as a Texinfo manual. If info and libm are properly installed at your site, the command
info libm

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:17 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net