Function float_expo_mant (o2scl)

O2scl : Function List

template<class fp_t>
void o2scl::float_expo_mant(fp_t x, int &expo, fp_t &mant)

Given a floating-point number, extract the exponent and mantissa separately.

This function ensures that the mantissa is always greater than or equal to 1 and less than 10.