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 expects a pointer to a double as its second argument. See here.