frexpf---split floating-point number
#include <math.h> double frexp(double val, int *exp); float frexpf(float val, int *exp);
All non zero, 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
long as val is nonzero). The power of two will be stored
frexpf is identical, other than taking and returning
floats rather than doubles.
frexp returns the mantissa m. If val is
frexp will set
0 and return val.
frexp is ANSI.
frexpf is an extension.
Go to the first, previous, next, last section, table of contents.