I have this line of code:
int g = modf(ans*power, 1)*10;
And it is giving me the error:
Invalid conversion from \'int\'
modf(ans*power, 1) is bad
modf(ans*power, 1)
double smthng = 1.0; modf(ans*power, &smthng) is good.
double smthng = 1.0; modf(ans*power, &smthng)
http://linux.die.net/man/3/modf