frexp

Divides a floating point number into a normalized mantissa and an exponent

double frexp (
        double x,
        int *n
)

Arguments

x Argument
n Pointer to a storage location that stores the exponent

Return value

The normalized mantissa [1/2, 1) is returned.

Explanation

The floating point number x is separated into a normalized mantissa [1/2,1) and an exponent (2n). The exponent is placed at the storage location pointed to by n.
The normalized mantissa is returned by the function.