When used with frexp , the ldexp function ldexp useful in situations requiring repeated multiplication by 2. If the next multiplication causes overflow or underuse, use frexp to branch the exponent mantissa. This gives you full control over the exhibitor and the mantissa, so you can work with them separately without losing accuracy. When you're done, use ldexp to combine the mantissa and the exponent again.
More details here .
source share