![]() |
int format double arg calculations
Hey guys imtrying to calculate a figure but i get an error int format double arg
i want to calculate the sizetotal but also round off the sizetotal. How can i do that? Code:
#define MINE_DENSITY 0.6 |
Re: int format double arg calculations
It shouldnt be an error I guess. It should be warning.
Try writing sizetotal = (float)(float)size * MINE_DENSITY; and printf("%f", sizetotal); |
| All times are GMT +5.5. The time now is 20:16. |