Syntax | #include <math.h> double frexp(double num, int *exp); | |
Description | These functions split a floating-point value num into the mantissa x and the exponent exp using the formula: num = x * 2exp |x| is in the interval [0.5, 1.0] exp is a pointer to an integer that specifies the exponent to the base 2.
| |
Return val. | Mantissa x | a floating-point number of the function-type that lies in the interval [0.5, 1.0] and satisfies the equation: num = x * 2exp. The exponent is stored in exp. |
0 | if num is equal to 0 (in which case the exponent is also equal to 0). | |
Notes | An application wishing to check for error situations should set | |
See also |
|