int getRightPartOfDecimal(double d) {
// XXX 2015-06-28 H.K. - /u/amphetamachine suggested this method to extract the second part of a double
// XXX 2015-06-28 H.K. - Not sure why this needs an int cast in between though
return atof((char*)(int)d);
}
9
u/immibis Jun 28 '15
You mean like this?