#include <cmath>float frexp(float num, int *exp);double frexp(double num, int *exp); long double frexp(long double num, int *exp);

The frexp( ) function decomposes the number num into a mantissa in the range 0.5 to less than 1, and an integer exponent such that num = mantissa * 2exp. The mantissa is returned by the function, and the exponent is stored at the variable pointed to by exp.

A related function is ldexp( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net