how can I extract the mantissa of a double
问题 I would like to store in a variable the mantisssa of a double I have post a code to get the binary representation of a double : click here What should I change to isolate the mantissa 回答1: In <math.h> double frexp (double value, int *exp) decompose VALUE in exponent and mantissa. double ldexp (double value, int exp) does the reverse. To get an integer value, you have to multiply the result of frexp by FLT_RADIX exponent DBL_MANT_DIG (those are availble in <float.h> . To store that in an