It shouldnt be an error I guess. It should be warning.

Try writing
sizetotal = (float)(float)size * MINE_DENSITY;

and

printf("%f", sizetotal);