int exp)
{
    float fexp;
    float mantissa = frexp(abs(x), fexp) * sign(x);
    exp = int(fexp);
    return mantissa;
}
