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 chan
The code here is a bit dangerous in terms of portability, but here it is...
#include float myFloat = 100; int32_t mantissa1 = reinterpret_cast(myFloat) & (((int32_t)1 << 24) - 1); double myDouble = 100; int64_t mantissa2 = reinterpret_cast(myDouble) & (((int64_t)1 << 53) - 1);