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);
}
35
u/say_wot_again Jun 28 '15
But.... That's not what they meant when they said double! And how would you tell 1, 10, and 100 apart? I call shenanigans.